开发者

How do I turn off intellisense for javascript?

开发者 https://www.devze.com 2023-01-20 02:22 出处:网络
While editing javascript content VisualStudio is starting to bug me with how it keeps inserting highlighted suggestions. For example it keeps inserting valueOf( if I type val(. This is really annoying

While editing javascript content VisualStudio is starting to bug me with how it keeps inserting highlighted suggestions. For example it keeps inserting valueOf( if I type val(. This is really annoying.

I want to invoke intellisense开发者_Go百科 manually just like I can with C#, is there any way of turning off the auto-complete suggestion or at least preventing it from selecting an entry for me?


In Visual Studio Tools > Options > Text Editor > JScript
In corresponding panel as Statement completion
Uncheck Autolist members & Parameter Information

I think that should do the trick


I realize resharper isn't mentioned in the question, however there is an easy solution if you're using it.

Navigate to Resharper -> Options -> Intellisense -> Completing Character. Once there, add ".val(" to the "Do not complete on" text field beside the JavaScript row.

Like so:

How do I turn off intellisense for javascript?


I tried Myra's solution but it didn't solve it completely for me due to ReSharper. Turned out it was the ReSharper intellisense that autocompleted whatever I was writing to the current/top option in the intellisense list, not the VS default intellisense.

I fixed this by turning off ReSharper's JavaScript support completely by going to ReSharper -> Options -> Products & Features -> Uncheck JavaScript and TypeScript.

This might not be a good solution if you depend on any other JavaScript- or TypeScript-related features in ReSharper but I finally got control of the intellisense. Peace, at last...

(Just to be clear, I still have the "Autolist members" and "Parameter Information" options as described in Myra's post above checked/activated, and the "Only use Tab or Enter to commit" option as described in Brett Ryan's comment above also checked/activated)


for me it was also resharper (replacing my .each with .forEach), and what I did is go to menu

Resharper -> Options    
Environment -> IntelliSense -> Autopopup    
select JavaScript tab    
"After dot" -> select "Display but do not preselect" in the dropdown
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号