Select the default dictionary for saving wordsīy default, P圜harm saves words to the global application-level dictionary. To remove a custom dictionary from the list, select it and click or press Alt+Delete. The corresponding file will open in a new editor tab. To edit the contents of a custom dictionary in P圜harm, select it and click or press Enter. To add a new custom dictionary to the list, click or press Alt+Insert and specify the location of the required file. Press Ctrl+Alt+S to open the IDE settings and then select Editor | Natural Languages | Spelling.Ĭonfigure the list of custom dictionaries: dic extension that contain lists of words.Īdd Hunspell dictionaries, each of which consists of two files: the DIC file that contains a list of words with the applicable modification rules and the AFF file that lists prefixes and suffixes regulated by a specific modification rule. Save words to a built-in global or project dictionary.Īdd plain-text files with the. You cannot change them directly, but you can extend the spellchecker in other ways: P圜harm includes bundled dictionaries for all configured languages. This will affect the projects created or opened for the first time after you save the settings. Go to New Projects Setup | Settings for New Projects.Ĭlear the checkboxes described above. In the Commit Message Inspections, clear the Spelling checkbox. Press Ctrl+Alt+S to open the IDE settings and then select Version Control | Commit. Disable spellchecking Disable the Typo inspectionĬlear the checkbox next to the Typo inspection. This suppresses all spelling checks within the class scope.įor more information, refer to Suppress inspections. For example, in case of Python, suppressing the Typo inspection for a class adds the following annotation before the class declaration: On one of the suggested fixes, press the right arrow key or click and select Suppress for class or another relevant suppress action.ĭepending on the language and code element, this adds a special annotation or comment that tells the editor to suppress the relevant inspection in the corresponding scope. Like with any other inspection, you can suppress the Typo inspection for specific files and code elements.Ĭlick or press Alt+Enter to show the available intention actions. Process comments: check text inside comments. Process literals: check text inside string literals. Specify the severity level and the scope in which to apply this level.įor example, if you want typos to stand out more, select Error or Warning to highlight typos similar to syntax errors or warnings in your code. In the right-hand pane, configure the Typo inspection: Severity Press Ctrl+Alt+S to open the IDE settings and then select Editor | Inspections.Įxpand the Proofreading node and click Typo in the central pane. Configure the Typo inspectionīy default, the Typo inspection checks code identifiers, string literals, and comments in all scopes. P圜harm will run the Typo inspection on all files in the selected scope and show all found typos in a separate tab of the Problems tool window. In the Run 'Typo' dialog, select the scope in which you want to run the inspection, and other options, such as a file mask filter. In the Enter inspection name popup, find and select the Typo inspection. Press Ctrl+Alt+Shift+I or go to Code | Analyze Code | Run Inspection by Name in the main menu. You can run the Typo inspection on your entire project or a set of files. Press F2 and Shift+F2 to step through all problems in the current file, including typos. For more information, refer to 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 and/or should be shared with the team working on that project. If you have added the word by mistake, press Ctrl+Z to remove it from the dictionary.īy default, P圜harm saves words to the global application-level dictionary. Select Save to dictionary to add the word to the user's dictionary and do not report it in the future. If a detected typo is actually a valid word, you can add it to a user-defined dictionary that extends built-in dictionaries. For code identifiers, such as 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 ways to fix the spelling. Press Alt+Enter or click to the left of the caret to show the available actions. Place the caret at a word highlighted by the Typo inspection. For this purpose, P圜harm provides a dedicated Typo inspection which is enabled by default. P圜harm looks for spelling errors in identifier names, string literals, comments, markdown files, and commit messages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |