VS代码自动更正 [英] VS Code Autocorrect

查看:115
本文介绍了VS代码自动更正的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来自动替换VS Code中常见的拼写错误的单词.

I'm looking for a way to automatically replace my commonly misspelt words in VS Code.

那里是否有东西/我将如何创建可以添加特定字符串以查找,替换为字符串以及启用自动更正的语法/文件类型的东西?

Is there something out there / how would I create something where I can add a particular string to find, string to replace with and a syntax/filetypes for the autocorrect to be active in?

示例:

backgorund |背景| css/scss/less

backgorund | background | css/scss/less

为澄清起见,我希望它可以自动更正,没有关键输入.

To clarify, I want it to be automatically corrected, no key inputs.

非常感谢!

推荐答案

有一个它的配置非常简单.就您而言,只需将以下内容添加到settings.json

Its configuration is pretty straightforward. In your case just add the following to your settings.json

"auto-correct.dictionary": [
{
  "languages": ["javascript","css","html"],
  "words": {
    "backgorund": "background"
  }
}]

"backgorund"将被自动更正,而无需特定的按键操作.

And "backgorund" will be automatically corrected without specific key presses.

这篇关于VS代码自动更正的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆