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 5 years have passed since last update.

VSCodeで複数ある名前の異なるDockerfileに対してLanguageModeを利かせる

Posted at

VSCodeではDockerfileという名前のファイルでしか、認識されずDockerfileのSyntax Highlightが適用されない。

.vscode/settings.jsonに以下のような内容を追記すれば、Dockerfile.devDockerfile.prodにも適用される。

{
  "files.associations": {
    "Dockerfile.*": "dockerfile"
  }
}

上記はワークスペースに対する設定だが、ユーザ設定で変えても大丈夫。

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?