I have a stack of code snippets imported into Visual Studio. Just recently, they have stopped displaying in Intellisense.
If the keyboard shortcut doesn't bring up anything else on IntelliSense, then I can tab and the code snippet is inserted just fine.
However, if the keyboard shortcut for the snippet happens to also bring up other items in IntelliSense, tabbing will select the first of those items, so I actually can't use the code snippet at all!
Does anyone have any ideas why IntelliSense would be unable to list my code snippet shortcuts? I started using ReSharper recently, but that wouldn't be the problem surely?!
Thanks for your help
David
Project-folder snippets are created with the New Snippets file for ' '... option in the Preferences: Configure User Snippets dropdown menu and are located at the root of the project in a . vscode folder. Project snippet files are useful for sharing snippets with all users working in that project.
This fixed the problem for me: remove and then re-add all code snippet folders with the code snippet manager. Tools->Import and Export settings->Reset all settings. Chose reset and over write the existing settings options!
On the menu bar, choose Edit > IntelliSense > Insert Snippet. From the right-click or context menu in the code editor, choose Snippet > Insert Snippet.
If IntelliSense is not working as it should on your Windows 11/10 PC, you can try restarting VS Code and this should solve the issue. Restarting the program can be really effective and time saving in some cases. If the issue persists, you can try restarting your computer altogether.
It is certainly connected to installing Resharper. First thing it does is turn IntelliSense off. Check this question for help with preserving your snippets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With