LoginSignup
0
0

More than 5 years have passed since last update.

YAMLとMarkdownではtrailing whitespaceをtrimしたくない

Last updated at Posted at 2016-02-29

参考

指定したい拡張子のファイルを開いている時にメニューから
Sublime Text -> Preferences ▶ Settings - More ▶ Syntax Specific - User

Markdown.sublime-settings / YAML.sublime-settings

{
  "trim_trailing_white_space_on_save": false
}

理由としては、Markdownで行末にスペース2つで改行するパターンがあるのと、YAMLはrailsのlocaleを自動生成するような仕組みを使っている時に、valueが無いkeyの行末がスペースになるので、それらが削除されるのを防ぐため
(gitはgitで設定とかaddの方法次第で行末のスペースを自動削除してしまうので注意が必要)

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