如何使notepad ++自动将csproj文件视为XML?

mar*_*ark 39 file-extension text-editor notepad++ csproj

我经常使用notepad ++来编辑csproj文件.我总是需要转到语言菜单并选择XML以获得语法突出显示.

是否可以配置notepad ++以自动将csproj文件视为XML?

Vla*_*adV 69

打开设置 - >样式配置器,在"语言"列表中选择"XML",将"csproj"(不带引号)添加到"用户分机"框中.

  • 无论我需要做多少次,我都记不起来. (3认同)

Jon*_*han 9

编辑notepad ++文件夹中的文件langs.xml.

改变这个

<Language name="xml" ext="xml xsml xsl xsd kml wsdl" commentLine="" commentStart="&lt;!--" commentEnd="--&gt;">
</Language>
Run Code Online (Sandbox Code Playgroud)

通过

<Language name="xml" ext="xml xsml xsl xsd kml wsdl csproj" commentLine="" commentStart="&lt;!--" commentEnd="--&gt;">
</Language>
Run Code Online (Sandbox Code Playgroud)