Disable visual studio autocomplete comment in java

2019-06-21 20:34发布

问题:

My problem is simple. Whenever I type "/*" in javascript or typescript file in VisualStudio, editor adds "*/" so I get: "/* */". I like to disable this autocomplete feature because its annoying. I want to just type "/*" and have only this.

Where I can disable this autocomplete function? I was looking in resharper and visualstudio options and I couldnt find anything about it.

回答1:

I had this problem for C++, too. Try to disable "Menu | Tools | Options | | General | Automatic brace completion" - this worked for me. I couldn't reproduce your problem with a JavaScript 'Script1.js' file. For JavaScript I always got only "/*". Nevertheless it might help.



回答2:

Its JavaScript IntelliSense 'feature'. It will be easier to get used to it than to turn it off. Turning it off will turn off other features that you will find usefull