Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable TabNine extension for only one language?

I want to disable TabNine extension for HTML files, is that possible?

like image 956
Lincoln Avatar asked Nov 05 '19 21:11

Lincoln


2 Answers

After some time I had the pleasure to discover how to do it! You need to use the tabnine.disable_file_regex attribute, so for example if you want to disable for md,html and css files do this:

  "tabnine.disable_file_regex": [
    "[.]md$",
    "[.]html$",
    "[.]css$",
  ]

You can do for any extension! Hope this help others

like image 81
Lincoln Avatar answered Dec 04 '22 05:12

Lincoln


My tabnine setting in VSCode doesn't appear to have a 'disable_file_regex' option but it does have a "tabnine.disabledLanguagesIds" option. I set mine to "tabnine.disabledLanguagesIds": [ "txt", "html"] . It works for me.

like image 40
McAuley Avatar answered Dec 04 '22 06:12

McAuley