Auto Correct for VS Code
A simple VisualStudio Code extension that corrects your commonly misspelled words. Heavily inspired by vim’s :IAbbrev and vim-abolish plugin
Features
After typing an incorrectly spelled word, the extension will automatically replace it with the correct variant of the the word
Extension Settings
auto-correct.dictionary: this is where you add words to auto correct
"auto-correct.dictionary": [
{
"languages": ["*"],
"words": {
"hte": "the",
"mispell": "misspell",
"mispelled": "misspelled",
"{despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or}": "{despe,sepa}rat{}"
},
"useLargeList": false
},
{
"languages": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"words": {
"cosnt": "const",
"functoin": "function"
}
}
]
"languages": ["*"]: this is the global dictionary, it’ll work on every language typeuseLargeList: set to true to use some default key pairs
A feature from vim’sa vim-abolish plugin
"words": {
...
"{despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or}": "{despe,sepa}rat{}"
}
This will be automatically converted to the following
"words": {
...
"desparate": "desperate",
"desparates": "desperates",
"desparated": "desperated",
"desparating": "desperating",
"desparately": "desperately",
"desparation": "desperation",
"desparations": "desperations",
"desparator": "desperator",
"seperate": "separate",
"seperates": "separates",
"seperated": "separated",
"seperating": "separating",
"seperately": "separately",
"seperation": "separation",
"seperations": "separations",
"seperator": "separator"
}
Release Notes
0.2.1
Adds vim-abolish’s way of making multiple dictionary words https://github.com/tpope/vim-abolish
Adds initial code for tests
0.2.0
Reverts PR to add back language specific dictionaries.
Fixes undo/redo
Adds default li
0.1.1
0.1.0
Bare bones release of Auto Correctd
How can I disable spelling check in Visual Studio 2010? By spelling check I mean in comments, string etc, not in actual code
hammar
138k17 gold badges303 silver badges385 bronze badges
asked Oct 29, 2012 at 0:34
1
In the Visual Assist X Options dialog on the Underlines page, uncheck the «Underline spelling errors in comments and strings» option.
answered Jan 5, 2013 at 6:03
sean esean e
11.8k3 gold badges44 silver badges56 bronze badges
Cory — This will disable syntax highlighting.
This is probably an extension you have installed. You needs to disable it in the extensions manager or configure it not to check spelling.
http://blogs.msdn.com/b/yardman/archive/2011/02/01/visual-studio-2010-spell-checker.aspx
For example in my install spell checking is provided by Visual Assist. If I disable this extension then the squigglies in comments go away.
answered Oct 29, 2012 at 0:43
Ade MillerAde Miller
13.5k1 gold badge41 silver badges74 bronze badges
2
I’m fairly certain VS2010 doesn’t have a built in spell-checker, however, the C/C++ options contain IntelliSense which can cause «red squiggles.» Here’s how to disable those:
Tools -> Options -> Text Editor -> C/C++ -> Advanced
Under «IntelliSense» will be an option called «Disable Squiggles.» Set it to true.
answered Oct 29, 2012 at 0:40
Had this problem in Visual Studio 2019. Turned out it was my Resharper extension. Extensions->Resparper->Options->Tools->Respeller->Enable Respeller (uncheck)
answered Apr 13, 2021 at 9:32
tobbenb3tobbenb3
6581 gold badge6 silver badges9 bronze badges
in javascript I solved this by going to Tools > Options > TextEditor > Javascript > advanced > Uncheck Show Syntax Errors.
answered Jan 5, 2016 at 14:14
1 ответ
Сортировка:
Сброс на вариант по умолчанию
1
Вот где это настраивается:
Tools -> Options, потом заходим в раздел Text Editor -> C/C++ -> Code Style -> Formatting и там уже надо поправить всё, что Вам не нравится в автоформатировании.
Улучшить ответ
ответ дан 6 апр 2021 в 15:38
S.H.S.H.
10.8k1 золотой знак19 серебряных знаков40 бронзовых знаков
Добавить комментарий
|
Всё ещё ищете ответ? Посмотрите другие вопросы с метками
- c++
- visual-studio
- code-style
или задайте свой вопрос.
Всё ещё ищете ответ? Посмотрите другие вопросы с метками
- c++
- visual-studio
- code-style
или задайте свой вопрос.
- Remove From My Forums

Как отключить автоисправление ошибок в студии?
-
Вопрос
-
Например пишу
for(i = 0; i < 10; i+
оно исправляет
for(i = 0; i < 10; identity+
Т.к. переменная i не была обьявлена. Меня это уже бесит. Как отключить?
Ответы
-
-
Предложено в качестве ответа
YatajgaModerator
4 августа 2012 г. 7:13 -
Помечено в качестве ответа
Abolmasov Dmitry
15 августа 2012 г. 11:31
-
Предложено в качестве ответа
Все ответы
-
-
Предложено в качестве ответа
YatajgaModerator
4 августа 2012 г. 7:13 -
Помечено в качестве ответа
Abolmasov Dmitry
15 августа 2012 г. 11:31
-
Предложено в качестве ответа
-
Не забывайте отмечать ответы, спасибо!
Для связи [mail]
Проверка орфографии, как способ упростить жизнь программисту.
Программисты, чаще всего народ грамотный, но встречаются и уникумы, у которых математический склад ума и грамматика русского языка им давалась с трудом. Это я о себе 
Ладно, если место опечатки комментарий к коду, классу, методу или свойству, но это может быть подпись к форме, которая может остаться незамеченной и оказаться на виду у заказчика. И, честно говоря, за такое бывает стыдно!
Напоследок CodeReview — это то, из-за чего я вообще начал искать, как проверять ошибки до заливания на проверку кода. А дело тут вот в чём… При проверке кода, к которому обязательно требовалось добавлять комментарий ко всему, чему только можно — у меня и коллег уходило много времени на прочтение и проверку каждого написанного предложения. Я сидел и по слогам читал слова, что бы не пропустить ошибку. Доходило до того, что меня это изматывало больше, чем анализ написанного кода.
Поэтому для меня остро встал вопрос: Как же осуществить проверку орфографии в Visual Studio?
Решение было найдено! Им оказалась установка обычного расширения, которое, немаловажно, умело проверять русский, английский и многие другие языки, а так же было полностью бесплатным.
Его название и ссылка на https://marketplace.visualstudio.com:
Visual Studio Spell Checker (VS2013/VS2015)
Ссылка на проект на GITHub:
https://github.com/EWSoftware/VSSpellChecker
Далее я покажу, как выглядят проверки правописания.
Демонстрация работы.
На сайте marketplace описано, что умеет данное дополнение, поэтому приведу несколько скриншотов с работой:
Установка и настройка.
Заходим Tools > «Extentions and Updates» > Online в поле поиска указываем «Spell checker» и ставим расширение от EWSoftware.
После установки надо выбрать используемые словари, для этого идём в Tools > «Spell Checker» > «Edit Global Configuration»
Выбираем «Dictionary Settings» и в случае, если у вас по каким то причинам отсутствуют нужные словари добавляем их из списка.
После этого, проверка ошибок должна обязательно работать!
Добавление локального словаря
Хочу заметить, что мы редактировали «Global Settings» (Общие настройки), теперь (по желанию) мы можем для конкретного проекта переопределить глобальные настройки, к примеру добавить пользовательские словари на вкладке «Dictionary Settings». Для этого нам понадобится у проекта добавить «Spell Checker Configuration File».
И уже редактировать настройки появившегося в дереве проекта файле ProjName.csproj.vsspell.
Здравствуйте.
Я пишу программу в среде разработки Visual Studio 2015, на языке C# (хотя язык программирования наверно неважен в данном случае).
К программному коду я пишу комментарии на русском языке. И время от времени, при написании комментариев, возникают опечатки и грамматические ошибки. Эти «опечатки и грамматические ошибки» я выискиваю при помощи копирования комментариев и вставки в Microsoft Word (так как Word умеет автоматически находить слова с ошибками и подсвечивать их красной волнистой линией). Но, к сожалению, проверка грамматических ошибок таким образом оказывается трудозатратной.
Возможно ли, каким-либо образом сделать так, чтобы Visual Studio автоматически находила бы грамматические ошибки в комментариях к программному коду, и подсвечивала бы их?
It’s always fun when Visual Studio (ie @drunkvs) can’t recite the alphabet backwards: The code below builds just fine when running through the compiler, but Visual Studio displays Intellisense errors in the Error Window and in the code with underlined squiggles:
The actual build of the code succeeds, but Intellisense is flagging several classes as missing even though they clearly exist and clearly compile properly.
IntelliSense is High!
So IntelliSense sometimes goes off the rails and if you see errors in your project that don’t make sense, first check to see if the errors are related to Intellisense.
Notice the drop down in the error list that lets you see Build + Intellisense which, in the case above produces 3 errors, but no errors if I just show Build Only:
Note the Intellisense error drop down is a new feature so you may not see it in older versions of Visual Studio. Not sure when it arrived but it was in one of the late VS 2015.x updates.
Clearing up Intellisense
There’s usually a simple solution when IntelliSense decides to sleep one off:
Delete the .vs folder
The .vs folder holds solution related temp data including the .suo file that caches intellisense and some debug data. That folder also holds Web site configuration data for Web projects and a few other things. It’s safe to delete this folder — Visual Studio recreates it when it’s missing.
Older versions of Visual Studio (prior to VS 2015) didn’t have a separate folder and dumped that same information into files in the solution’s root folder.
In these older versions you can fix Intellisense issues by deleting the Solution’s .suo file. Deleting the .vs folder in newer version nukes the .suo file which is responsible for cached IntelliSense and also some cached Debug data. When VS acts up and reports whacky errors that seem wrong, the burning down the .suo file is a nice quick thing to try first.
To do this:
- Shut down VS
- Nuke the
.vsfolder or the.suofile - Restart VS
The .suo file contains cached IntelliSense data and once that file is off, no amount of recompilation or clearing the project is going to help. Nuke the .suo file. or in VS 2015 or later the .vs folder and get back to sanity.
Compiler Errors?
I haven’t run into this problem very frequently but when it does happen it’s usually quite vexing resulting (for me at least) in a flurry of deleting output folders.
I have a standard set of steps I tend to go through when I get compiler errors that are wrong. Well, usually it’s me who’s wrong, not the compiler but on occasion I get to be right and the compiler is really wrong.
If you have errors that show under the Build Only dropdown, then the issue isn’t Intellisense.
This has gotten a lot better, but for a while invalid compiler errors were a big problem with the .NET SDK projects (.NET Core / .NET Standard) and in those cases the solution for me usually is (and still occasionally is):
- Delete the
objfolder completely - Delete the
binfolder completely
While Visual Studio’s Clean project feature is supposed to address this, Clean will only clean up files the project knows about. If you’ve removed or renamed assemblies there may still be left over files in project output folders and deleting them cleans out the project completely.
This often fixes odd left over file issues that can cause strange compilation behavior. I never really considered Intellisense failure previously because Visual Studio didn’t differentiate compiler and IntelliSense Errors (or more accruately I didn’t notice the dropdown). I’d see errors in the Error list, yet my project would compile successfully, which was even more confusing.
Back to the Straight And Narrow
It’s nice that Visual Studio now explicitly shows these errors separately as Build and Intellisense errors, so you can take the sepearate actions to clean up this mess. In the past when the errors weren’t separated it was even more confusing with compiles succeeding, but the error list showing errors.
Now as to the cause of any of these errors? @drunkvs has some cleaning up to do after the barf fest of the previous night…









