Atom

Atom的python插件和常用插件

被刻印的时光 ゝ 提交于 2019-12-03 03:59:14
python: simplified-chinese-menu:中文汉化(英文差的) 代码高亮:Atom自带 自动补全:autocomplete-python 语法检查:linter-flake8 定义跳转:python-tools 代码运行:atom-runner (只能输出,不能输入),atom-python-run(Windows,可以输入),python-run-terminalnx(Linux,可以输入) 调试:(编辑器做调试就算了吧),用户数量最高的python-debugger,连查看变量的功能都没有。 必备插件: minimap 类似与Sub的小地图显示,代码多了很方便切换 atom-beautify 必备;格式化代码的,快捷键ctrl-alt-b script 必备;运行脚本,快捷键ctrl-shit-b file-icons ,显示文件类型对应的图标。 Color Picker,在编辑器里面挑选颜色。通过右键选择 Color picker,或者 cmd + shift + c / ctrl + alt + c快捷键调出颜色选择面板。支持 HEX, HEXA, RGB, RGBA, HSL, HSLA形式指定的颜色值。 markdown-preview 编辑实时预览插件,Atom官方出品(默认已自动安装) markdown-scroll-sync将

How to edit core files in Atom Editor

匿名 (未验证) 提交于 2019-12-03 02:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to edit the tree-view package in Atom. I want to add a new item to the context menu. But i can't file where are the files. I can open the config folder and I can see all the community packages I have installed, but where do I find the core files of the editor? 回答1: They are packed inside the app.asar file. This file is located at the following location in the OS X version. Atom.app/Contents/Resources/app.asar This file is generated by this build script . Of course, this package is open-source, so you can view the code for tree-view on

Pretty Printing Syntax Tree with Operator Precedence and Associativity in Haskell

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there any commonly used method or even a library for pretty printing (and parsing) a syntax tree with (binary) operators that have an associativity and a precedence level assigned, so that the result uses as few brackets as possible? Take the formulas of propositional calculus as an example: data Formula = Atom String | Not (Formula) | And (Formula) (Formula) | Or (Formula) (Formula) | Imp (Formula) (Formula) Assume that the precedence is Imp < Or < And < Not (so Not binds the most) and that And , Or and Imp should associate to the right;

Is there a command for formatting html in the Atom.io editor?

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to format my html with a command, like i do in visual studio, using CTRL-K-D. Is this possible in atom.io? If not, are there other options? 回答1: Atom does not have a built-in command for formatting html. However, you can install the atom-beautify package to get this behavior. Press CTRL + SHFT + P to bring up the command palette. ( CMD + SHFT + P on a Mac) Type Install Packages to bring up the package manager. Type beautify into the search box. Choose atom-beautify or one of the other packages and click Install . Now you can use

How to configure Atom to run Python3 scripts?

匿名 (未验证) 提交于 2019-12-03 02:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my terminal, I type $ which python3 , outputting /opt/local/bin/python3 I would like to configure Atom to run Python3 scripts. In my Atom Config, I have runner: python: "/opt/local/bin/python3" However, if I run the following script in some script named filename.py , import sys print(sys.version) I get the following output: 2.7.11 (default, Feb 18 2016, 22:00:44) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] How exactly does one set up the PATH for Python3.x scripts to run correctly? Is there a different package I could use?

How can I jump to class/method definition in Atom text editor?

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there an easy way to do this? On Aptana I used Control +click and I wish there was a way to do something similar on Atom. 回答1: I had the same issue and atom-goto-definition (package name goto-definition ) worked like charm for me. Please try once. You can download directly from Atom. This package is DEPRECATED. Please check it in Github. 回答2: I believe the problem with "go to" packages is that they would work diferently for each language. If you use Javascript js-hyperclick and hyperclick (since code-links is deprecated) may do what you

No Nodes Selected from Atom XML document using XPath?

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to parse an Atom feed programmatically. I have the atom XML downloaded as a string. I can load the XML into an XmlDocument . However, I can't traverse the document using XPath. Whenever I try, I get null . I've been using this Atom feed as a test: http://steve-yegge.blogspot.com/feeds/posts/default Calling SelectSingleNode() always returns null , except for when I use " / ". Here is what I'm trying right now: using (WebClient wc = new WebClient()) { string xml = wc.DownloadString("http://steve-yegge.blogspot.com/feeds/posts

Providing RSS and Atom feeds? Do we need both or has RSS won? [closed]

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to provide some RSS feed(s) for my site. Is it worth providing Atom feeds? or is Atom the more common feed? Is there a winner? BTW, this relates to programming because I'm required to program the feed which we will provide (or use some open source code, etc). Update So far it looks like peeps are saying Atom should be the way to go if I need to only spend time supporting one? Anyone else agree with these thoughts (and hopefully backed up by some stats??) Possible Solution While stumbling around the net for some RSS schema details, I

ffmpeg - generate moov atom

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am currently recording video with blackmagic's prorecorder. I transcode video on-the-fly to mp4 video container with ffmpeg. Duration is unknown as I'm transcoding .ts that prorecorder is outputing to named pipe. My goal is to I try to play this file with browser, while stream is still beeing recorded - Playback is great, but problem is that when I open file, duration is defined to current recording time. So, question is - I would like to generate "fake" moov atom for duration of fe. 8 hours with ffmpeg, and then start recording mp4 file

Atom data-grammar syntax for keybindings

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Can someone give a full explanation of the syntax for Atom's data-grammar attribute (used in keybinding selectors)? For instance, what is the difference between [ data - grammar = 'source example' ] and [ data - grammar ~= 'source example' ] ? Also, how do you specify multiple grammars? For instance, how would you specify that a key binding should be limited to html or xml formats? If there already exists documentation on this somewhere, I have not yet found it, but would appreciate being pointed to it. 回答1: Quick Example: keymap