LoginSignup
4
5

More than 5 years have passed since last update.

Atom セットアップ

Last updated at Posted at 2016-04-20

Ruby用に Atom IDE をセットアップします。
atom-ctags は tag 作成に時間がかかりすぎるとエラーになるようなので、ターミナルから ctags を実行しています。

前提

  • OSX 10.11
  • Atom 1.7.2
  • Ruby用

手順

Atom

atom-package

  • ツールバー > Atom > Preferences > Install から、以下を検索してinstall
    • autocomplete-plus

ctags

  • インストール
$ brew install ctags
  • 作成
$ cd path/to/project
$ ctags --langmap=RUBY:.rb --exclude=vendor --exclude=*.js --exclude=log* --exclude=*.log --exclude=.bundle --exclude=.git -R .
  • Atom で読み込むようにリネーム
$ mv tags .tags

スペースだけの行でも、スペースを消さない (diffが...)

  • ツールバー > Atom > Preferences > Packages > whitespace
    • Remove Trailing Whitespace を OFF
  • もしくは config.cson に↓
"*":
  whitespace:
    removeTrailingWhitespace: false

操作

定義へ飛ぶ

  • 右クリ > Go to Declaration もしくは Alt+Cmd+down
  • 戻る時は Alt+Cmd+up

検索

  • 除外パスの指定例
    • !vendor, !log*, !*.log, !tmp, !.git

注意点

  • なし
4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5