How do I turn off intellisense for javascript? - visual-studio-2010

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 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:

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

Related

Why is intellisense in visual studio not showing method overloads any longer?

Does anyone know why my Visual Studio has suddenly stopped allowing me to select between different method overloads via intellisense? Instead it just seems to let me choose between a lot of different unrelated classes.
I can still select if I click the arrows though.
See example here:
I found it annoying to have both the popup methods suggestions & method overloads; I cannot use the up & down arrows to see the different overloads.
Solution: "Tools -> Options -> Text Editor -> (pick your language) -> Intellisence", then uncheck "Automatically show completion list in argument lists".
Just as Tim said, to get what you want, you should first
invoke Ctrl+Shirt+Space and then use Up or Down of the Small keyboard to get the display of the overloading methods.

In Visual Studio Community 7, how do I stop Tab from creating spaces?

I'm using VS Community 7.4.3. Lots of answers to this question seem only to deal with full regular Visual Studio, and tell you to go to the Tools -> Options -> Text Editor. But there is no "options" menu under my Tools dropdown in VS Community. I have a menu for Text Editor in Preferences. And an option called "Backspace removes indentation." But I select and unselect this--no matter what, when I press Tab, it creates 4 individual spaces.
Help please!
Figured it out.
"Preferences" -> "Source Code" -> "Code Formatting"
Select code type you want to change formatting for,
Under "Text Style" tab, unclick "Use default settings from 'text file'",
And unclick "Convert tabs to spaces".
I guess there is a text file somewhere where the default settings are stored. I think I saw answers for editing that but not including where to find it. This works for me.

How do I stop Visual Studio 2013 jumping out of quotes when I type a space in web editor?

When I'm typing the value of an attribute and I hit space, it automatically jumps to the next attribute. I guess this makes sense when typing an id or something but it's really annoying when typing the class attribute with multiple classes. Does anyone know a way to change this behavior?
The behavior you describe is a function of the IntelliSense "auto list members" feature. You can work around the annoyance by disabling "Auto list members" for HTML. Note: you can also do this for other languages.
To disable "auto list members" for HTML go to:
Tools > Options > Text Editor > HTML > General:
uncheck "Auto list members"
Unchecking this option will prevent the "jumping" behavior you describe but will also prevent the IntelliSense list from automatically displaying. Probably not a big deal since you can just press CTRL+J to display it when you need it.

How to hide reference counts in VS2013?

Visual Studio 2013 introduced a new feature where it shows you how many times each of your methods are used.
I don't find it very useful, and it messes up the spacing of my file. How do I disable it? Can't seem to find the option.
I guess you probably are running the preview of VS2013 Ultimate, because it is not present in my professional preview. But looking online I found that the feature is called Code Information Indicators or CodeLens, and can be located under
Tools → Options → Text Editor → All Languages → CodeLens
(for RC/final version)
or
Tools → Options → Text Editor → All Languages → Code Information Indicators
(for preview version)
That was according to this link. It seems to be pretty well hidden.
In Visual Studio 2013 RTM, you can also get to the CodeLens options by right clicking the indicators themselves in the editor:
documented in the Q&A section of the msdn CodeLens documentation
Another option is to use mouse, right click on "x reference". Context menu "CodeLens Options" will appear, saving all the navigation headache.
Workaround....
In VS 2015 Professional (and probably other versions).
Go to Tools / Options / Environment / Fonts and Colours.
In the "Show Settings For" drop-down, select "CodeLens"
Choose the smallest font you can find e.g. Calibri 6.
Change the foreground colour to your editor foreground colour (say "White")
Click OK.
The other features of CodeLens like: Show Bugs, Show Test Status, etc (other than Show Reference) might be useful.
However, if the only way to disable Show References is to disable CodeLens altogether.
Then, I guess I could do just that.
Furthermore, I would do like I always have, 'right-click on a member and choose Find all References or Ctrl+K, R'
If I wanted to know what references the member -- I too like not having any extra information crammed into my code, like extra white-space.
In short, uncheck Codelens...
In VSCode for Mac (0.10.6) I opened "Preferences -> User Settings" and placed the following code in the settings.json file
"editor.referenceInfos": false
User and Workspace Settings

VS2010 Intellisense behavior change (not fixed by ctrl-alt-space)

All of a sudden I've lost automatic Intellisense in my projects. And now I'm doubting I ever had it because it's something I just took for granted.
Now, if I type in System. nothing pops up automatically until I hit ctrl-space.
I've tried the suggested "ctrl-alt-space" to toggle intellisense Completion Mode, but that only adds or removes a search box at the top of the Intellisense window, which I still have to bring up with "ctrl-space"
Am I crazy? Isn't the default mode of Intellisense to popup suggestions after you type in object. ?
It is a setting, it could be turned off if you recently played with an add-on that you subsequently uninstalled. For example. Tools + Options, Text Editor, All Languages. Ensure the "Auto list members" checkbox is ticked.
If you are using C#, go to Tools -> Text Editor -> C# -> IntelliSense. Make sure "Show completion list after a character is typed" is checked.

Resources