Press F2 and Shift+F2 to step through all problems in a file, including typos. For more information, see Select the default dictionary for saving words. You can choose to save words to the project-level dictionary if the spelling is correct only for this particular project. If you have added the word by mistake, press Control+Z to remove it from the dictionary.īy default, IntelliJ IDEA saves words to the global application-level dictionary. Select the Save to dictionary action to add the word to the user's dictionary and skip it in the future. Place the caret at a word highlighted by the Typo inspection. If a detected typo is actually a valid word, you can add it to a user-defined dictionary that extends the built-in dictionaries. For code elements, such as names of variables, functions, classes, and other symbols, the inspection also suggests changing all occurrences via the Rename refactoring. In string literals and comments, only the spelling of this particular word at caret changes. Select one of the suggested fixes from the list. Place the caret at any word highlighted by the Typo inspection.Ĭlick or press Alt+Enter to show the available intention actions. For more information, see Configure the Typo inspection. You can either correct the spelling or save the word to the dictionary.ĭisable the Typo inspection if you want to ignore all spelling mistakes. The Typo inspection detects and highlights words that are not included in any dictionary. For this purpose, IntelliJ IDEA provides a dedicated Typo inspection which is enabled by default. IntelliJ IDEA checks the spelling of all your source code, including variable names, text in strings, comments, literals, and commit messages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |