atom 使用备忘
由于sublime text在ubuntu下无法输入中文始终没有最好的解决办法,所以转战atom,等待sublime解决好问题在回归,atom由gituhub开发,它的slogan是
A hackable text editor
for the 21st Century
Update:一个月的使用,发现atom的许多扩展都已经做的比sublime的好很多,而且真的是hackable,离不开atom了,唯一的缺点就是性能逊色于sublime
安装atom
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
atom的扩展包
Community Packages (55) /Users/quill/.atom/packages
├── Remote-FTP@1.1.4
├── angular-2-typeScript-snippets@0.7.0
├── atom-beautify@0.30.5
├── atom-bootstrap3@1.2.12
├── atom-easy-jsdoc@4.12.2
├── atom-jade@0.3.0
├── atom-nodejs-snippets@2.0.0
├── atom-ternjs@0.18.3
├── atom-typescript@11.0.6
├── auto-detect-indentation@1.3.0
├── autocomplete-angular-material@0.4.0
├── autocomplete-java@1.2.7
├── autocomplete-js-import@1.4.0
├── autocomplete-modules@1.6.10
├── autocomplete-paths@2.8.0
├── block-comment@0.4.3
├── browser-plus@0.0.98
├── busy-signal@1.4.3
├── color-picker@2.2.5
├── dash@1.7.1
├── editorconfig@2.2.2
├── emmet@2.4.3
├── export-html@3.1.0
├── file-icons@2.1.11
├── go-debug@1.5.0
├── go-plus@5.5.5
├── go-signature-statusbar@1.2.1
├── goto-definition@1.3.4
├── highlight-selected@0.13.1
├── intentions@1.1.5
├── jade-autocompile@0.8.5
├── jquery-snippets@11.0.0
├── language-babel@2.71.0
├── language-blade@0.34.0
├── language-stylus@0.2.0
├── language-vue@0.23.1
├── less-than-slash@0.17.0
├── linter@2.2.0
├── linter-ui-default@1.6.7
├── lodash-snippets@2.0.0
├── minimap@4.29.6
├── minimap-pigments@0.2.2
├── monokai@0.24.0
├── node-resolver@1.0.1
├── open-in-browsers@0.0.30
├── pigments@0.39.1
├── react@0.16.2 (disabled)
├── react-snippets@0.9.0
├── sass-autocompile@0.13.3
├── script@3.15.0
├── stylus-autocompile@0.6.1
├── svg-preview@0.11.0
├── todo-show@1.11.0
├── vue-autocomplete@0.1.1
└── vue2-autocomplete@0.1.0-alpha.4
atom sippets
'.source.coffee':
'Console log':
'prefix': 'log'
'body': 'console.log $1'
atom使用cson来定义snippet,scope可以参见snipppet,多行代码使用'''code line here'''
参考
https://codeforgeek.com/2014/09/install-atom-editor-ubuntu-14-04/
placeholder
各种语言的scope
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
CSS: source.css
D: source.d
Diff: source.diff
Erlang: source.erlang
Go: source.go
GraphViz: source.dot
Groovy: source.groovy
Haskell: source.haskell
HTML: text.html(.basic)
JSP: text.html.jsp
Java: source.java
Java Properties: source.java-props
Java Doc: text.html.javadoc
JSON: source.json
Javascript: source.js
BibTex: source.bibtex
Latex Log: text.log.latex
Latex Memoir: text.tex.latex.memoir
Latex: text.tex.latex
LESS: source.css.less
TeX: text.tex
Lisp: source.lisp
Lua: source.lua
MakeFile: source.makefile
Markdown: text.html.markdown
Multi Markdown: text.html.markdown.multimarkdown
Matlab: source.matlab
Objective-C: source.objc
Objective-C++: source.objc++
OCaml campl4: source.camlp4.ocaml
OCaml: source.ocaml
OCamllex: source.ocamllex
Perl: source.perl
PHP: source.php
Regular Expression(python): source.regexp.python
Python: source.python
R Console: source.r-console
R: source.r
Ruby on Rails: source.ruby.rails
Ruby HAML: text.haml
SQL(Ruby): source.sql.ruby
Regular Expression: source.regexp
RestructuredText: text.restructuredtext
Ruby: source.ruby
SASS: source.sass
Scala: source.scala
Shell Script: source.shell
SQL: source.sql
Stylus: source.stylus
TCL: source.tcl
HTML(TCL): text.html.tcl
Plain text: text.plain
Textile: text.html.textile
XML: text.xml
XSL: text.xml.xsl
YAML: source.yaml