0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VSCodeでMarkdownファイルをデフォルトでプレビューモードで開くように変更する方法

0
Posted at

概要

AIコーディングエージェントを使用した開発ではドキュメントがMarkdown中心になりますが、開発者としては書くことよりも読むことの方が圧倒的に多くなります。ところが、VSCodeではMarkdownファイルを開くと編集モードで開くため、ファイルごとにプレビューモードで開き直す必要があります。

この記事では、Markdownファイルを開いた際、デフォルトでプレビューモードで開くようにする設定を紹介します。

設定手順

  1. コマンドパレットを開く(Mac:Cmd + Shift + P、Windows:Ctrl + Shift + P)
  2. Preferences: Open User Settings (JSON) を選ぶ
  3. settings.jsonに以下を追加
"workbench.editorAssociations": {
  "*.md": "vscode.markdown.preview.editor"
}

これにより、Markdownファイルを開くとプレビューモードで開くようになります。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?