Pycharm typo in word что это
Use this settings page to select custom spelling dictionaries, create your own dictionaries, add words, and thus expand the basic spellchecking support provided by PyCharm by default.
Custom Dictionaries
This area displays the list of user-defined dictionary files, which can be any of the following:
The built-in project-level and application-level dictionaries, which you populate by manually saving words to them.
Plain text files with the DIC extension, containing words separated with a new line.
Hunspell dictionaries, comprise two plain text files commonly sharing the same name, for example, en_GB.dic and en_GB.aff . The DIC file contains a list of words together with the applicable modification rules. The AFF file lists prefixes and suffixes regulated by a specific modification rule. Hunspell dictionaries can be easily obtained online, for example, here.
Hunspell support is provided by the corresponding Hunspell plugin. The plugin is not bundled with PyCharm, but it can be installed on the Settings/Preferences | Plugins page, tab Marketplace , as described in Installing plugins from JetBrains repository.
Enable/disable a custom dictionary
To have a custom dictionary applied in the current project, select the checkbox next to it.
To exclude a custom dictionary from spellchecking within the scope of the current project, clear the checkbox next to it.
Use single dictionary for saving words
Defines the behavior of the Save 'word' to dictionary intention action invoked on a mistyped word:
If the checkbox is selected, PyCharm lets you select a single dictionary from the list. The selected dictionary is used for saving all mistyped words.
If the checkbox is cleared, PyCharm lets you choose a dictionary in the code editor on the fly, individually for each a mistyped word.
Click this button to add a new dictionary to the list.
Click this button to open the contents of a dictionary in a new editor tab.
Click this button to remove the selected dictionary from the list.
Accepted Words
Use this area to populate a custom dictionary with the list of words that should be skipped by the Typo inspection. The list also contains words that you saved to either the built-in global or project dictionary. Although it does not contain words added to the project-level dictionary by other users and words from other custom dictionaries, the Typo inspection will not highlight them.
Click this button to open the Add New Word dialog and specify a new entry there. CamelCase or snake_case are not supported. If you try to add a word that is already included in one of the spelling dictionaries, PyCharm displays an error message: The word is already in the dictionary .
PyCharm helps you make sure that all your source code, including variable names, textual strings, comments, literals, and commit messages, is spelt correctly. For this purpose, PyCharm provides a dedicated Typo inspection which is enabled by default.
In textual strings and comments, only the spelling of this particular word at caret changes. Where the Rename refactoring is available, the inspection suggests to rename all occurrences of a symbol .
The Typo inspection detects and highlights words not included in any dictionary. You can either correct the spelling or accept the word as correct. Disable the Typo inspection if you want to ignore all spelling mistakes. For more information, see Disable spellchecking.
Correct a misspelled word
Place the caret at any word highlighted by the Typo inspection.
Click or press Alt+Enter to show the available intention actions.
Select one of the suggested fixes from the list.
To jump to the next misspelled word, press F2 .
Accept a misspelled word
Place the caret at a word highlighted by the Typo inspection.
Click or press Alt+Enter to show the available intention actions.
Select the Save to dictionary action to add the word to the user's dictionary and skip it in the future.
If you have added the word by mistake, press Ctrl+Z to remove it from the dictionary
By default, PyCharm saves words to the global application-level dictionary. You can choose to save words to the project-level dictionary if the spelling is correct only for this particular project. For more information, see Select the default dictionary for saving words.
Configure the Typo inspection
By default, the Typo inspection checks all text including code elements, string literals, and comments in all scopes.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Inspections .
Expand the Proofreading node and click Typo in the central pane.
In the right-hand pane, configure the Typo inspection:
Specify the severity level and the scope in which to apply this level.
For 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.
Specify the type of content to check:
Process code : check various code elements.
Process literals : check text inside string literals.
Process comments : check text inside comments.
Disable spellchecking
Press Ctrl+Alt+S to open the IDE settings and select Editor | Inspections .
Clear the checkbox next to the Typo inspection.
Dictionaries
PyCharm includes bundled dictionaries for all configured languages. You cannot modify them directly but you can extend the spellchecker in other ways:
Save words to a built-in global or project dictionary.
Add plain-text files with the .dic extension that contain lists of words.
If you have the Hunspell plugin installed and enabled, you can add Hunspell dictionaries, which comprise 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. For example, en_GB.dic and en_GB.aff .
Configure the spellchecker dictionaries
Press Ctrl+Alt+S to open the IDE settings and select Editor | Natural Languages | Spelling .
Configure the list of custom dictionaries:
To add a new custom dictionary to the list, click or press Alt+Insert and specify the location of the required file.
To edit the contents of a custom dictionary in PyCharm, select it and click or press Enter . The corresponding file will open in a new editor tab.
To remove a custom dictionary from the list, select it and click or press Alt+Delete .
Select the default dictionary for saving words
By default, PyCharm saves words to the global application-level dictionary. You can choose to save words to the project-level dictionary if the spelling is correct only for this particular project.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Natural Languages | Spelling .
Select either the built-in project-level or application-level dictionary or disable the option to prompt you every time you save a word.
Add accepted words manually
Press Ctrl+Alt+S to open the IDE settings and select Editor | Natural Languages | Spelling .
Add words to the Accepted words list. PyCharm adds manually accepted words to the project-level dictionary.
You can't add words that are already present in one of the dictionaries and mixed-case words, such as CamelCase and snake_case .
The Accepted words list also contains words that you saved to either the built-in global or project dictionary. Although it does not contain words added to the project-level dictionary by other users and words from other custom dictionaries, the Typo inspection will not highlight them.
Мы рады сообщить всем хабровчанам: вышла новая версия нашей продвинутой IDE для Python — PyCharm 3.4! Как и раньше, PyCharm 3.4 доступен в платном варианте PyCharm Professional Edition и в бесплатном, с открытым исходным кодом, — PyCharm Community Edition.
PyCharm 3.4 уже доступен для скачивания по этой ссылке.
Хотя номер версии кажется минорным, в действительности релиз очень важен. Дело в том, что PyCharm всегда следовал нумерации версий языка Python. В этот раз, нумеруя PyCharm в соответствии с самой последней версией языка Python — 3.4, мы тем самым хотели отразить то, что PyCharm поддерживает высокие стадарты и новейшие технологии в их последних версиях. Так, PyCharm 3.4 поддерживает Python 3.4, Django 1.7 и множество других технологий и фреймворков.
В PyCharm 3.4 вы найдете усовершенствованную функциональность, повышенную общую производительность продукта, а также много новых полезных функций, которые, как мы надеемся, еще немного “подстегнут” вашу продуктивность.
Что же нового попало в этот замечательный релиз:
- Изменился процесс управления интерпретаторами Python. Теперь добавить новый интерпретатор или создать виртуальное окружение с помощью virtualenv можно уже на стадии создания проекта, без необходимости лезть в настройки IDE.
- Поддержка разработки на удаленных машинах стала еще более продвинутой. Теперь PyCharm различает типы удаленных интерпретаторов и делит их на 3 категории:
- интерпретаторы находящиеся на хостах, доступ к которым осуществляется по ssh (например физические хосты или виртуальные машины);
- интерпретаторы находящиеся на виртуальных машинах, созданных средствами Vagrant;
- интерпретатор находящийся на SFTP-сервере, для которого настроена deployment-конфигурация.
- Мы проверили PyCharm 3.4 на совместимость с Django 1.7, устранили появившиеся проблемы, потом проверили еще раз… и вот теперь вы можете смело использовать последнюю версию этого потрясающего web-фреймворка вместе с PyCharm.
- Появились новые шаблоны для языка Python. Эти шаблоны теперь также появляются как опции при автодополнении. Как и раньше, шаблоны конструкций языка можно использовать как есть или модифицировать под свои нужды, а также создавать свои собственные.
- Долгожданная функциональность множественных курсоров и множественного выделения кода наконец-таки появились в редакторе кода PyCharm. С этими функциями можно легко и быстро редактировать код одновременно в нескольких местах файла.
Предлагаем посмотреть эту функциональность в этом коротком видео:
-
И без того углубленная поддержка инструментария Vagrant стала еще полнее.
- Графический отладчик PyCharm получил солидную порцию улучшений. Теперь его можно подключать прямо в интерактивной консоли Python. Как это делается, можно посмотреть здесь. Кроме того, отладчик PyCharm теперь поддерживает Stackless Python.
Об остальных нововведениях в WebStorm 8, теперь также доступных в PyCharm 3.4, можно прочитать здесь.
-
Как вы, возможно, знаете, PyCharm включает в себя всю функциональность WebStorm либо “из коробки”, либо путем доустановки официальных бесплатных плагинов. С появлением версии 3.4 пользователям PyCharm теперь доступна функциональность последнего WebStorm 8. Одной из главных новостей этого релиза является улучшенная поддержка популярного фреймворка AngularJS прямо из коробки.
-
Недавно обновился плагин IdeaVim, являющийся одним из лучших существующих эмуляторов всемирно известного редактора Vim. Если вы привыкли редактировать код в стиле Vim, c помощью этого плагина вы можете серьезно выиграть в продуктивности, используя одновременно преимущества и гибкость модели Vim и мощь современной интеллектуальной IDE. В обновлении плагина добавились поддержка команд :map , :source и :sort , новый обработчик горячих клавиш, который не требует дополнительной отдельной клавиатурной схемы в настройках PyCharm. Кроме прочего, ~/.vimrc больше не используется по умолчанию, вместо него используется ~/.ideavimrc , для того чтобы не влиять на настройки обычного Vim.
- Появилась новая “Github” цветовая схема для редактора кода PyCharm.
Надеемся, вам понравится эта цветовая схема, которую мы переняли у стандартного просмотрщика кода Github. Чтобы ее активировать, необходимо зайти в Settings | Editor | Colors & Fonts и выбрать “Github color scheme”.
Конечно же, мы не остановились на этих улучшениях и поработали также над общей производительностью PyCharm. Изменения и улучшения затронули разные части IDE, и теперь PyCharm работает заметно шустрее.
В PyCharm 3.4 мы реализовали еще ряд менее заметных, но важных улучшений. Более подробную информацию вы можете прочитать на нашей официальной страничке What’s new in PyCharm 3.4, там же можно загрузить свежую версию для вашей платформы.
Различия между PyCharm Professional Edition и Community Edition можно посмотреть в таблице сравнения, которая всегда есть на нашем сайте.
Обновление PyCharm 3.4 Professional Edition бесплатно для всех, кто купил лицензию после 29 мая 2013 года. Как и раньше, всем доступна 30-дневная бесплатная полнофункциональная пробная версия.
Where is the option to disable the spell check on the strings for the PyCharm IDE? I hate the jagged line under my comments and strings.
@Close Voters: I see 2 of you suggest moving this to SU. Questions about programming tools are on-topic for SO, so I disagree with these particular close votes.
9 Answers 9
Go to File -> Settings -> Editor -> Inspections . Expand the list under Spelling in the middle window and uncheck the option Typo .
However, practically most of the jagged line is caused by violations of the PEP 8 coding style. If you would like to disable this option too, in the same window, expand the list under Python and uncheck the option PEP 8 coding style violation .
@KellyBang Thanks, that seemed to be the case for me too. Maybe in the newer versions they changed the location.
In the latest version of PyCharm it appears as ProofReading:
PyCharm does not check the syntax inside strings and comments. It checks spelling.
You can find the settings of the spell-checker under the Settings. page. There is a Spelling page inside Project Settings. Inside this page, at the bottom of the Dictionaries tab you can enable/disable dictionaries. If you don't want spell checking simply disable all of them.
Note that it is possible to add custom words in the spell checker, or, if you already have a dictionary on your computer, you can add it. This can turn out useful if you want to spell check different languages (for example Italian).
In particular if you are using a Linux system and you have installed the Italian language pack, you probably have the Italian dictionary under: /usr/share/dict/italian . You can add the /usr/share/dict directory to the directories searched for dictionaries and enable the italian dictionary.
It seems like PyCharm only checks files with the .dic extension. If you want to use /usr/share/dict/italian you should probably either copy it into an other directory renaming it italian.dic or you could create a symbolic link.
Где можно отключить проверку орфографии в строках для PyCharm IDE? Ненавижу зубчатые линии под моими комментариями и строками.
@ Close Voters: я вижу, что двое из вас предлагают переместить это в SU. Вопросы об инструментах программирования относятся к теме SO , поэтому я не согласен с этими конкретными близкими голосами.
Перейти к File -> Settings -> Editor -> Inspections . Разверните список Spelling в среднем окне и снимите флажок Typo .
Однако практически большая часть неровной линии вызвана нарушениями стиля кодирования PEP 8 . Если вы хотите отключить и эту опцию, в том же окне разверните список Python и снимите отметку с опции PEP 8 coding style violation .
В последней версии PyCharm он отображается как ProofReading:
PyCharm не проверяет синтаксис внутри строк и комментариев. Проверяет орфографию .
Вы можете найти настройки проверки орфографии на странице Настройки . В настройках проекта есть страница правописания . Внутри этой страницы в нижней части вкладки « Словари » вы можете включить / отключить словари. Если вы не хотите проверять орфографию, просто отключите их все.
Обратите внимание, что можно добавить собственные слова в средство проверки орфографии или, если у вас уже есть словарь на вашем компьютере, вы можете добавить его. Это может оказаться полезным, если вы хотите проверить правописание на разных языках (например, итальянском).
В частности , если вы используете систему Linux и вы установили итальянский языковой пакет, вы , вероятно , есть итальянский словарь под: /usr/share/dict/italian . Вы можете добавить /usr/share/dict каталог в каталоги, в которых выполняется поиск словарей, и включить italian словарь.
Похоже, PyCharm проверяет только файлы с .dic расширением. Если вы хотите использовать, /usr/share/dict/italian вам, вероятно, следует либо скопировать его в другой каталог, переименовав его, italian.dic либо создать символическую ссылку.
Читайте также: