0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【rails】Atomでrubocopを使用して自動整形する

Last updated at Posted at 2019-09-30

#最初に
Atom使用時に、コードをcmd + s で自動整形出来る様にするためにAtom Beautifyとrubocopを導入しました。

#やり方
1.AtomのPackageからAtom Beautifyをインストール

2.AtomのPackageからlinterlinterrubocopをインストール

3.以下のコマンドを入力し、rubocopをインストール

$ sudo gem install rubocop

4.rubocopのpathを取得

$ which rubocop

5.取得したpathをlinterrubocopのSettingsのCommandにペーストする
(初期値はrubocopになっています)

####これで、cmd + s で保存した際に、自動整形出来る様になります!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?