LoginSignup
8
7

More than 5 years have passed since last update.

VSCodeでマークダウンを編集する時用のオススメの設定

Posted at

いまだにちょっとしたテキストだったらVimで編集していたりもするのですが、複数のマークダウンファイルを編集したりするときには、Command(Winの方はctrl) + k, vで開くプレビュー機能のあるVSCodeを利用しています。

そのオススメの設定の健忘録。まずは、Electronのバグに対処するために、Remove backspace control character をインストール。 Command(Winの方はctrl) + p で、

ext install satokaz.vscode-bs-ctrlchar-remover

を実行、これでオートフォーマット時に、例の厄介なバックスペースの制御文字を除去してくれるようになります。

あとはユーザー設定に、

  // マークダウンでのみ保存時フォーマットを有効化
  "[markdown]": {
    "editor.formatOnSave": true,
    "editor.formatOnPaste": true,
    "editor.wordWrap": "on",
    "editor.renderWhitespace": "all",
    "editor.acceptSuggestionOnEnter": "off"
  },

以上を追記。保存時、張り付け時のフォーマット、テキスト折り返しあり。ホワイトスペース描画、サジェストを切る。という設定となっています。

皆さん楽しいマークダウン執筆生活を!

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