gpt4 book ai didi

visual-studio-2015 - Visual Studio 2015 JSX/ES2015 语法高亮

转载 作者:行者123 更新时间:2023-12-03 12:54:52 25 4
gpt4 key购买 nike

如何在带有 ES2015 代码的 JSX 的 Visual Studio 2015 中获得正确的语法突出显示?

ES2015 code

如果我删除 import,它工作正常和 export关键词:
Without import/export

我刚刚更新到 Visual Studio 2015 Enterprise Update 1,但它仍然保持不变。

最佳答案

在已安装的 VS2015 Update-3 和 NTVS 1.2 中,只需将 TypeScript Editor 设置为文件扩展名 jsx 的默认编辑器就可以了。

1) 打开工具>选项>文本编辑器>文件扩展名 .

2) 输入 jsx 在扩展中,选择 typescript 编辑器 作为编辑器,然后单击应用。

enter image description here

关于visual-studio-2015 - Visual Studio 2015 JSX/ES2015 语法高亮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34097915/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com