IntelliSense -> Enter AutoComplete for every language - Visual Studio - visual-studio

How to put the input of the first prompt on Enter from IntelliSense in Visual Studio?
For example, for C++ there is make so easy just change Member List Commit Aggressive to True at the settings, but how it make for other languages?

Tested on my side, and the default setting(IntelliSense) of C# highlighted and selected the default first prompt on Enter. Also tested with VB, it seems sometimes, under specific circumstances, the IntelliSense will not select the first prompt in the list, but select the most recommended code. If you continue to type more codes, the result will be the only (first) one.
Did you change some settings of IntelliSense in VS or install some extensions?
Please try to disable extensions temporary or/and reset settings, choose General on step 4, and see if it works.

Related

Recommendations overlap in Visual Studio

I do not know how, but when writing code, two panels open for suggestions and both are opened in a row. Unfortunately I couldn't find how to solve it.
These things sometimes be caused by plugins like CodeRush and Resharper that working together. I think it is necessary to use only one of these plugins. But I am not sure. The problem seems to be caused by the window being unable to be adjusted.
You can follow these steps from Visual Studio.
Window -> Close All Documents
Window -> Reset Window Layout
Exit Visual Studio to be sure, then go back in.
When the same happens to me, update:
In fact, the overlapping things are that both Resharper and IntelliSense show completion list after a character is typed. To prevent this, it is necessary to turn off either the Resharper or IntelliSense related feature. I prefered to close IntelliSense's completion list with help from this site. For this, I followed these steps:
From Visual Studio, select “Tools” > “Options“.
Select “Text Editor” in the left pane.
Select the language you are using (C#, C++, Basic, etc.).
For C# and Basic, choose “IntelliSense“. For C or C++, choose “Advanced“, then scroll to the “IntelliSense” section.
For C# and Basic, check the “Show completion list after a character is typed” to disable it. For C/C++, you will have a few options, such as “Disable Auto Updating“, “Disable Squiggles“, and “Disable #include “Auto Complete“. Set any of these to “True” to turn them off.

How to make work IntelliSense always (always show members list) in Visual Studio?

when I type a new code (new word), a list of members is displayed instant and fine. But when I click(switch) to already exist word and for exapmle press backspace - the member list not displayed, and I need to predd CTRL+J to call Members list.
For example in "Visual Studio Code" and "Xcode" as soon as you press backspace, the Members List is displayed.
Maybe Visual Studio (2015\17\19) has some kind of option?
As I know the behavior of Intellisense varies in different programming languages(Project types).
1.For those C#, VB.net projects, in VS you can go Tools=>Options=>Text Editor=>C#/Basic=>Intellisense=>To control the behavior, see:
The Show completion list after a character is deleted option is something you want. Enable it and then if you press backspace, the member list will display.
2.However it seems you're in C++ projects(checking your SO tags), for C++ projects, you can find Intellisense-related settings at Tools=>Options=>Text Editor=>C/C++=>Advanced:
There's no option which supports this behavior.(backspace or delete something and show member list). So if you're in C++ projects, I'm afraid the answer is negative, for now you do need to press CTRL+J to call Members list. And if you do need that option in C++ projects, I recommend that you post an suggestion for your requirement in Developer Community by suggest a feature button to let the team know.
Hope all above helps resolve your issue.

VS 2012 Intellisense suggests treeChild instead of true

My intellisense almost always goes for "treeChild" when I start typing tr, instead of "true". It's a really small thing, but it's kinda annoying since I will sometimes accidentally press return and it puts treeChild into my bool.
Any ideas why this is or how to get rid of it?
I never even used treeChild. Or looked at it.
In VS 2012, IntelliSense can pre-select the members that you have recently selected in the pop-up List Members box for automatic object name completion, during your current session in the IDE. You can check this: IntelliSense for Most Recently Used Members
To turn off this default behavior, go to Tools-Options-Text Editor-C#-IntelliSense and uncheck the option “Pre-select most recently used member” as below, then click ‘OK’ to save this modification.

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.

visual studio shell F# keyboard shortcuts

I've started using F# with the visual studio shell and I like the capability to be able to send lines to fsi by highlighting them, but the alt+Enter shortcut is really awkward and I would be much happier with this being on shift+Enter. (mainly since shift+ up/down arrow is select lines already)
Does anyone know how to change this? Thanks.
You can alter the keyboard mappings within Visual Studio. If you go to Tools -> Options -> Environment -> Keyboard, you'll see a window like the image below.
In order to check existing bindings, place the cursor in the "Press shortcut keys:" box and hit "Shft+Enter". You'll then see any potential conflicts in the drop-down box as shown.
In the example below, I'm searching through Global, which means shortcuts for anything in the application. You can switch it to be just the console or whatever you like.
Once you're happy with the shortcut you want to use, you need to select the command from the window containing all of the Action.* lines and then press Assign.
So I don't mean to be trite, but have you tried mapping the key?
So for F# Interactive I see Alt+Enter mapped to:
ClassViewContextMenus.ClassViewMultiselectProjectreferencesItems.Properties
Have your tried mapping Shift+Enter (or whatever) to that command?
Tools->Options->Environment->Keyboard
You should be able to get it all working from there.

Resources