Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliSense has forgotten my code snippets!

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

like image 980
David Avatar asked May 14 '10 10:05

David


People also ask

Where are VS Code snippets saved?

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.

Why is VS Code snippets not working?

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!

How do I enable code snippet?

On the menu bar, choose Edit > IntelliSense > Insert Snippet. From the right-click or context menu in the code editor, choose Snippet > Insert Snippet.

Why is IntelliSense not working in VS Code?

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.


1 Answers

It is certainly connected to installing Resharper. First thing it does is turn IntelliSense off. Check this question for help with preserving your snippets.

like image 68
Hans Passant Avatar answered Sep 24 '22 20:09

Hans Passant