首页 > 解决方案 > 通过 TextMate 系统在 Visual Studio 2017 中添加 Fortran 语法高亮

问题描述

这个链接:

https://docs.microsoft.com/en-us/visualstudio/ide/adding-visual-studio-editor-support-for-other-languages?view=vs-2017

建议我应该能够在 Visual Studio 2017 中为 .for 文件添加语法突出显示。正如文章所建议的,我已将 Fortran TextMate 语法添加到我的用户配置文件中,但我无法使用任何突出显示。

有没有遗漏的步骤?我需要在 VS2017 中做些什么吗?

标签: visual-studiovisual-studio-2017fortrantextmatebundles

解决方案


我发现了问题,这有点愚蠢,但其他人不会落入同一个陷阱......我在我的解决方案中打开了 .for 文件,并不断重新打开它以查看突出显示是否有效。这将自动重新打开解决方案中最后打开的文件,但不会突出显示它们......直到我关闭并重新打开 .for 文件。

哦!


推荐阅读