LoginSignup
3
5

More than 5 years have passed since last update.

Visual Studio Code でcshtmlファイルにhtmlのemmetを適用する

Posted at

はじめに

Angularの勉強を進めるにあたって、TypeScriptも一通り勉強しておきたいと思い始めた矢先に「TypeScript実践マスター」なる書籍が発刊されたので写経…。
途中、cshtmlファイルにhtmlタグを入力するシーンがあったのですが、emmetが適用されず、pタグ打つのすら億劫になっていたことに驚愕しました。
どうしたら適用されるのかわからずネットをさまよっていたら、解決方法を見つけたので
備忘録的に投稿。
しかも初投稿。

設定

以下を追加するだけでした。
cshtmlはrazorで表現するんですね。

settings.json
{
    "emmet.includeLanguages": {"razor":"html"}
}

参考

3
5
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
3
5