Atom编辑器的Web开发设置

您还可以在这里找到我:

  • 博客:http://haochuan.io/
  • Medium:_haochuan
  • Github:haochuan (haochuan) · GitHub

英文版请前往:

  • Medium: Setting Atom for Web Development
  • 博客:Setting Atom for Web Development

如果你正在纠结到底在vim, emacs, sublime text, atom, webstorm中,哪个是‘最好’的编辑器,那么请忽略这篇文章。如果你觉得自己喜欢atom,或者你对atom有兴趣想尝试一下,那么这篇文章可能会对你有所帮助。

以下的内容主要是关于我自己atom的设置,主要针对于HTML,CSS,JS,React,Node.js等web前端的开发。

下图是我的Atom的截图:

Atom编辑器的Web开发设置_第1张图片
atom_setting.png

UI Theme

atom-material-ui

material是目前我最喜欢的Theme,我在atom和sublime里都在用。


Syntax Theme

oceanic-next-dark

很多人喜欢用atom-material-syntax 来配合 atom-material-ui一起,但是我觉得这个Syntax Theme的对比度对我来说有点伤眼睛。

在oceanic-next-dark里,我做了如下的修改(光标颜色,选中内容颜色,背景颜色):

@syntax-cursor-color: #FFCC00; 
@syntax-selection-color: #474747;
@syntax-background-color: #1C1C1C;

注:因为我是重度vim用户,所以合适的光标颜色对我很重要:)


Keymap

目前为止我现在只有一个自定义的keymap:

'ctrl-e': 'tree-view:toggle'

这是在vim里的nerdtree的对应。

Packages

  • atom-beautify: 格式美化 HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, and SQL in Atom
  • atom-ternjs: ES5, ES6 (JavaScript 2015), Node.js, jQuery & Angular 格式补全
  • autocomplete-modules: require/import 自动补全
  • color-picker: Right click or press CMD-SHIFT-C/CTRL-ALT-C to open it
  • docblockr: A helper package for writing documentation
  • emmet: the essential tool for web developers
  • language-babel: Babel JavaScript ES201x, React JSX & Flow Grammar & Transpiler
  • linter: A Base Linter with Cow Powers
  • pigments: A package to display colors in project and files.
  • react: React.js (JSX) language support, indentation, snippets, auto completion, reformatting
  • term3: A terminal emulator for Atom. You can run shell sessions, Vim, Emacs, htop, etc.
  • todo-show: Finds all the TODOs, FIXMEs, CHANGEDs, etc. in your project.
  • vim-mode

来自Facebook的两个有趣的插件包

  • nuclide: 支持hack语言,支持flow检查type,支持Mercurial,更强大的搜索。
  • flow: type checking

一般情况下这两个包都是被我禁用的,因为太慢了。。


其他

  • Font Family: monaco
  • Font Size: 12
  • auto-update-packages: 如果你想让你的各种插件自动更新
  • file-icons: 如果喜欢针对不同文件类型的不同图标

你可能感兴趣的:(Atom编辑器的Web开发设置)