简体   繁体   English

可视代码类型脚本在空白和tslint上显示错误

[英]visual code type script shows error on whitespace and tslint

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? 我如何禁用它? 在此处输入图片说明

You have 3 options here: 您在这里有3个选择:

  • Disable the rules -> Put the cursor on the error, and click the lamp on the gutter. 禁用规则 ->将光标放在错误上,然后单击装订线上的指示灯。
  • Change the rules -> Edit your tslint.json 更改规则 ->编辑您的tslint.json
  • Follow the rules -> Best! 遵守规则 ->最好! Click Ctrl-. 单击Ctrl-. for auto fix. 自动修复。

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,单击齿轮图标,然后选择适当的选择。

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

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