简体   繁体   English

typescript 中的 vscode 评论 (Ctrl + /) 不起作用

[英]vscode commenting (Ctrl + /) in typescript not working

I have installed the latest version of vscode.我已经安装了最新版本的 vscode。 But apparently it couldn't auto detect any typescript files.但显然它无法自动检测到任何 typescript 文件。 I fixed with it by configuring the ts file association to typescript .我通过将 ts 文件关联配置为typescript来修复它。 This worked.这奏效了。 However, (Ctrl + /) was not working.但是, (Ctrl + /)不起作用。 It works fine with other languages but not typescript. I tried everything but none worked.它适用于其他语言,但不适用于 typescript。我尝试了所有方法,但都没有用。 How to I fix this.我该如何解决这个问题。 Any help will be much appreciated.任何帮助都感激不尽。

Try installing the TypeScript Extension Pack if you haven't done yet.如果您还没有安装TypeScript 扩展包,请尝试安装。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM