lukas-tr / vscode-materialdesignicons-intellisense

Provides intellisense, search and hover preview for Material Design Icons

Home Page:https://marketplace.visualstudio.com/items?itemName=lukas-tr.materialdesignicons-intellisense

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autocomplete for @mdi/js destructive

mririgoyen opened this issue · comments

Using the latest of VSCode and your (awesome) extension, I found an issue that has been troubling me.

This should illustrate the issue:
broked

Thank you!

I fixed this by adding the following settings:

  • materialdesigniconsIntellisense.kebabCase.noTextDeletionLanguages
  • materialdesigniconsIntellisense.camelCase.noTextDeletionLanguages
  • materialdesigniconsIntellisense.homeAssistant.noTextDeletionLanguages

Just add the languages where this occurs to one of these arrays.

The reason for adding these settings is that vscode automatically replaces the current word with the text to insert only for some languages (like JavaScript). Additionally, when the typed text contains characters like : or - in JavaScript, vscode just inserts the completion instead of replacing mdi: or mdi-.

I can’t understand at all where to install it.

  • materialdesigniconsIntellisense.kebabCase.noTextDeletionLanguages
  • materialdesigniconsIntellisense.camelCase.noTextDeletionLanguages
  • materialdesigniconsIntellisense.homeAssistant.noTextDeletionLanguages

I also don't know where to install it.

Open settings via F1 and enter preferences: open settings json. You can then add those 3 entries.

image

If you don't know the language identifier, you can list all languages by pressing F1 and entering change language mode. The identifier will be in parentheses.

image