I'm using visual code and It really annoying to see the red dashed line on each sentence because whitespace or tslint qoutemark.我使用的是可视代码,由于空白或tslint qoutemark,看到每个句子上的红色虚线确实很烦人。I tried to install typescript globally but nothing changed.我尝试在全球范围内安装打字稿,但没有任何改变。how can i disable it?我如何禁用它?
2 个解决方案
解决方案1
1 2017-08-22 21:55:34
You have 3 options here:您在这里有3个选择:
Disable the rules -> Put the cursor on the error, and click the lamp on the gutter.禁用规则 ->将光标放在错误上,然后单击装订线上的指示灯。
Follow the rules -> Best!遵守规则 ->最好!Click Ctrl-.单击Ctrl-.for auto fix.自动修复。
解决方案2
1 已采纳 2017-08-23 00:22:22
To get rid of all TSLint errors, uninstall or disable the TSLint extension.要摆脱所有TSLint错误,请卸载或禁用TSLint扩展名。
In other words, open the Extensions view, search for tslint, click on the gear icon, and then choose the appropriate selection.换句话说,打开扩展视图,搜索tslint,单击齿轮图标,然后选择适当的选择。