Webstorm typo in word что это

Обновлено: 06.07.2024

Use this settings page to select custom spelling dictionaries, create your own dictionaries, add words, and thus expand the basic spellchecking support provided by WebStorm 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 WebStorm, 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.

Defines the behavior of the Save 'word' to dictionary intention action invoked on a mistyped word:

If the checkbox is selected, WebStorm lets you select a single dictionary from the list. The selected dictionary is used for saving all mistyped words.

If the checkbox is cleared, WebStorm lets you choose a dictionary in the code editor on the fly, individually for each a mistyped word.

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, WebStorm displays an error message: The word <just typed word> is already in the dictionary .

WebStorm 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, WebStorm provides a dedicated Typo inspection which is enabled by default.

Typo quick fix: change

In textual strings and comments, only the spelling of this particular word at caret changes. Where the Rename a file or folder or 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 Configure the Typo inspection.

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, WebStorm 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.

To disable the Typo inspection, clear the checkbox next to it.

Dictionaries

WebStorm 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 WebStorm, 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, WebStorm 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. WebStorm 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.

Всем привет! Мы рады представить вам первое крупное обновление WebStorm в этом году. В новой версии вы найдете много новых возможностей и долгожданных улучшений, включая поддержку Vuex и новую опцию для запуска Prettier при сохранении файлов.

webStorm-2020-1-released

А сейчас давайте рассмотрим основные улучшения подробнее.

Новый шрифт для работы с кодом

На протяжении всего прошлого года мы разрабатывали специальный шрифт для работы с кодом, который бы помог нашим пользователям программировать с большим комфортом и свести напряжение глаз к минимуму. Результатом наших усилий стал JetBrains Mono, новый шрифт с открытым исходным кодом. Начиная с версии 2020.1, JetBrains Mono выбран по умолчанию в WebStorm и других наших IDE. Возможность включить другой шрифт, разумеется, также осталась.

jetbrains-mono

Более полезная быстрая документация

WebStorm 2020.1 поможет вам быстрее находить соответствующую информацию о символе, т. к. быстрая документация теперь отображается при наведении курсора на этот символ, а не только при нажатии F1. Если в вашем коде есть проблема и WebStorm может помочь с ее решением, он также даст вам об этом знать, отобразив доступное быстрое исправление прямо во всплывающем окне с документацией.

docs-on-hover

При работе с JavaScript и TypeScript кодом быстрая документация покажет подробную информацию о типе и видимости символа, а также о том, где этот символ определен.

ts-quick-docs

Режим Zen для сфокусированной работы

Новый режим Zen поможет вам полностью сосредоточиться на своем коде. Сочетая в себе два режима, Distraction Free и Full Screen, он позволяет быстро включить их оба и на время изолировать то, что может отвлечь ваше внимание.

zen-mode

Чтобы попробовать новый режим, перейдите к View | Appearance | Enter Zen Mode из основного меню WebStorm или используйте всплывающее окно Switch (Ctrl+` | View mode | Enter Zen Mode).

Поддержка Vuex и Vue Composition API

Vue.js набирает популярность, поэтому мы активно работаем над тем, чтобы сделать WebStorm самой полезной IDE для работы с этим фреймворком. На этот раз мы добавили два крупных улучшения.

Начнем с того, что при работе с библиотекой Vuex вы увидите варианты автодополнения кода для символов Vue store и модулей при редактировании Vue-компонентов. WebStorm также поможет быстро перейти к определению геттеров, мутаций и действий.

vuex-completion

Во-вторых, поскольку уже можно использовать Composition API, доступный в грядущем релизе Vue 3, мы решили добавить его поддержку в WebStorm 2020.1.

vue-composition-api-support

Запуск Prettier при сохранении файлов

Благодаря новой опции Run on save for files, вы можете применить форматирование Prettier ко всем файлам, указанным в настройках WebStorm и отредактированным в текущем проекте, при сохранении этих файлов — больше не нужно настраивать file watcher или пользоваться сторонним плагином.

prettier-on-save

Помощь с выявлением грамматических и стилистических ошибок

Начиная с версии 2020.1 WebStorm поставляется в комплекте с Grazie, нашим инструментом для проверки орфографии, грамматики и стиля текста. Это поможет вам избежать грамматических ошибок при добавлении комментариев, коммитов и различных языковых конструкций.

grazie

По умолчанию Grazie включен только для английского языка и проверяет не все типы файлов на возможные грамматические ошибки. Вы можете добавить больше языков и изменить предустановленные настройки в Preferences/Settings | Editor | Proofreading (перейдите в раздел Grammar, если вы хотите настроить область проверок, посмотреть существующие правила и добавить исключения).

Новые intention-действия и инспекции

Как всегда, мы добавили несколько новых intention-действий и быстрых исправлений, чтобы помочь вам сэкономить время при работе с JavaScript и TypeScript кодом. Например, одно из новых intention-действий, доступное при нажатии на Alt+Enter, позволит быстро преобразовать существующий код в optional chaining и/или nullish coalescing.

Больше информации о новых intention-действиях и быстрых исправлениях доступно в релизном блог-посте (на английском).

Поддержка последних версий популярных технологий

В WebStorm 2020.1 вы найдете встроенную поддержку функциональности TypeScript 3.8, в том числе type-only imports/exports, private fields, и top-level await , которая поможет вам работать с ними более эффективно. Помимо этого, мы сделали работу с Angular 9 проектами проще, полностью поддержав новый формат метаданных.

Более удобное перебазирование коммитов

Действие Interactively Rebase from Here, доступное на вкладке Logs окна Git, позволяет редактировать, объединять и удалять предыдущие коммиты. Это помогает сделать историю коммитов более линейной и понятной.

rebasing-commits

В WebStorm 2020.1 вы найдете улучшенную, более интерактивную версию диалогового окна Rebasing Commits, которое открывается при вызове действия Interactively Rebase from Here. В обновленном диалоговом окне отображаются действия, которые можно применить к каждому коммиту. Он также показывает подробную информацию о каждом коммите и позволяет вам увидеть разницу и быстро сбросить примененные изменения.

Использование WebStorm для быстрого редактирования файлов

Благодаря новому режиму LightEdit, вы можете открывать файлы в отдельном окне текстового редактора, при этом не создавая и не загружая целый проект. Режим сработает, если WebStorm еще не запущен. Если WebStorm запущен, файл откроется в нем, как обычно.

Чтобы попробовать новый режим в действии, нажмите правой кнопкой мыши на файл, который вы хотите отредактировать, и выберите WebStorm из списка предложенных программ. Как вариант, вы также можете настроить command-line launcher, как описано здесь, и открыть файл, пользуясь командной строкой.

lightedit-mode

На этом всё на этот раз. Спасибо, что дочитали до конца! Еще больше подробностей вы найдете в релизном блог-посте (на английском). Вопросы, пожелания и просто мысли высказывайте в комментариях. Мы, как и всегда, будем рады ответить. Баг-репорты можно создать тут.

Читайте также: