Disable visual studio autocomplete comment in javascript

烂漫一生 提交于 2019-12-10 14:56:29

问题


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



来源:https://stackoverflow.com/questions/27742412/disable-visual-studio-autocomplete-comment-in-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!