質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%

Q&A

1回答

1631閲覧

atomのオートインデントに空白も入ってしまう。

treetail7

総合スコア12

0グッド

0クリップ

投稿2017/04/22 07:20

atomでrubyのプログラムをよく書くのですが、
下記のように、コードを選択してオートインデントをかけると
空の改行もインデントしてしまい、困っています。

イメージ説明

環境

atomバージョン

Atom : 1.16.0 Electron: 1.3.13 Chrome : 52.0.2743.82 Node : 6.5.0

####パッケージ

activate-power-mode@0.4.1 atom-beautify@0.29.13 atom-jade@0.3.0 atom-typescript@10.1.10 atom-webbrowser@2.1.4 autocomplete-html-entities@0.1.0 autocomplete-ruby@0.1.0 browser-plus@0.0.60 color-picker@2.1.1 file-icons@1.7.3 git-history@3.2.0 git-log@0.4.1 git-plus@5.13.4 highlight-column@0.5.1 highlight-line@0.11.1 highlight-selected@0.11.2 language-haml@0.24.0 linter@1.11.4 linter-erb@1.0.2 linter-ruby@1.2.2 markdown-pdf@1.5.0 merge-conflicts@1.4.1 multi-cursor@2.1.3 pretty-json@1.0.3 rails-snippets@2.3.2 react@0.16.1 remote-edit@1.8.24 ruby-slim@0.2.0 show-ideographic-space@1.0.1 tree-view-git-status@0.2.3 wakatime@5.0.8

keymap.cson

'atom-text-editor':'cmd-alt-l': 'editor:auto-indent' '.editor': 'ctrl-alt-b': 'atom-beautify:beautify-editor'

config.cson

"*": "SFTP-deployment": {} "activate-power-mode": particles: size: {} spawnCount: {} totalCount: {} screenShake: {} "atom-beautify": ruby: {} "atom-webbrowser": {} "autocomplete-plus": {} "autocomplete-ruby": suggestionPriority: true autosave: enabled: true "browser-plus": {} "color-picker": automaticReplace: true core: disabledPackages: [ "activate-power-mode" ] excludeVcsIgnoredPaths: false themes: [ "one-dark-ui" "base16-tomorrow-dark-theme" ] editor: fontSize: 10 invisibles: {} showInvisibles: true "highlight-column": {} "highlight-selected": {} linter: {} "linter-erb": trimMode: "0" "linter-haml": {} "linter-ui-default": showPanel: true "markdown-preview": breakOnSingleNewline: true "remote-edit": {} "terminal-panel": {} "tree-view": {} welcome: showOnStartup: false ".erb.html.text": editor: autoIndent: true ".html.ruby.text": editor: autoIndent: true autoIndentOnPaste: false ".rails.rjs.ruby.source": editor: autoIndent: true tabLength: 20 ".rails.ruby.source": editor: autoIndent: true autoIndentOnPaste: true showIndentGuide: true tabLength: 1 ".slim.text": editor: showIndentGuide: true

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

Atomのwhitespaceっつープラグイン使えばいけそうだとおもいますけどどーでしょーかねー
https://qiita.com/amymd/items/dee1d2dc70357633ffd4

投稿2019/03/16 01:43

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問