如何从拼写检查器中忽略Lorem Ipsum文本?

时间:2018-06-29 13:24:44

标签: visual-studio-code

我正在使用Code Spell Checker,我想知道是否有可能忽略掉Lorem Ipsum文本而被标记为“未知单词”,而不必在我的"cSpell.userWords"列表中添加每个单词。 / p>

2 个答案:

答案 0 :(得分:1)

是的,这是可能的。

  1. 打开VSCode设置。
  2. 搜索for (let i = 0; i < this.colorPallete.length; ++i) { this.nums.push(i); this.circles.push( <React.Fragment key={i}> <TouchableHighlight onPress={() => { this.selectCircle(i); }} style={[ styles.colorCircle, { borderWidth: this.state.bgWidth[i], borderColor: this.colorPallete[i], }, ]}> <View style={[ styles.innerCircle, { backgroundColor: this.colorPallete[i], borderColor: this.colorPallete[i], }, ]} /> </TouchableHighlight> </React.Fragment> ); }
  3. cSpell.language添加到列表中。

CSpell lorem

答案 1 :(得分:-1)

您只需要通过添加注释来禁用/启用拼写检查器,如下图所示。这就是我为HTML所做的:

<!--cSpell:disable -->

在拉丁文段落之前,然后

<!--cSpell:enable -->

之后。

对要使用的编码语言使用注释语法。

启用cSpell时: with cSpell enabled (default)

在禁用cSpell的情况下: with cSpell disabled