简体   繁体   English

如何配置Visual Studio Code以将扩展名为.js以外的文件识别为Javascript

[英]How can I configure Visual Studio Code to recognize files with extensions other than .js as Javascript

We have a QA tool (SmartBear's TestComplete) that uses javascript as a scripting language, but names the file with a ".sj" extension instead of ".js". 我们有一个质量检查工具(SmartBear的TestComplete),它使用javascript作为脚本语言,但是使用扩展名“ .sj”而不是“ .js”来命名文件。 I would like to use Visual Studio Code to edit those files, with all the nice intellisense and other tooling that comes with it, but I can't figure out how to configure it to recognize .sj files as javascript files. 我想使用Visual Studio Code编辑这些文件,并附带所有不错的intellisense和其他工具,但是我不知道如何配置它以将.sj文件识别为javascript文件。 Any ideas? 有任何想法吗?

Answering my own question, just for future readers that may be searching for the same thing. 回答我自己的问题,仅适用于可能正在寻找相同事物的未来读者。

According to a tweet from @code , this is not yet possible, but is coming "soon". 根据@code的推文 ,这还不可能,但很快就会到来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何配置扩展 Visual Studio Code - How to configure extensions Visual Studio Code 如何使Visual Studio Code在一个文件中识别html,php和javascript? - How can I make Visual Studio Code recognize html, php and javascript all in one file? 如何离线安装 Visual Studio Code 扩展? - How can I install Visual Studio Code extensions offline? 如何在 Visual Studio Code 中为文件扩展名创建模板? - How can I create templates for file extensions in Visual Studio Code? node.js文件是否可以使用“.js”以外的扩展名来区分文本编辑器中的客户端和服务器代码? - Can node.js files have extensions other than “.js” to differentiate client and server code in a text editor? 如何从命令行配置Visual Studio Code扩展 - How to configure Visual Studio Code extensions from command line Visual Studio Code web 扩展能否依赖于其他扩展? - Can a Visual Studio Code web extension be dependent on other extensions? 在 Visual Studio Code 中,为什么数字“7”的突出显示与其他整数不同? 我该如何改变它? - In Visual Studio Code, why is the digit '7' is highlighted differently than other integers? And how can I change it? 如何配置 Visual Studio 代码以在保存时提交到 git? - How can I configure visual studio code to commit to git on save? Visual Studio代码:将其他扩展视为HTML - Visual Studio Code: Treat other extensions as HTML
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM