Home > Back-end >  ClassName Snippet for vscode and react
ClassName Snippet for vscode and react

Time:10-21

Is there a way to make VScode to autocomplete/make a snippet of className so when i choose is it it will complete to className={``} (instead of current situation when it just complete to "className" ) ? Thanks

CodePudding user response:

You can try TabNine or VSCode IntelliSense and see if that helps, but it is hard for an IDE to assume 100% what you want to do, I am just giving examples of extensions that might help more.

CodePudding user response:

You can create a snippet and you can set className by reading your fileName.

you can refer Documentation.

https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets

  • Related