Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 RC missing using option in quick actions

I have no idea what changed, but either using Ctrl+. or right clicking to bring up the quick actions in VS2015 RC (14.0.22823.1) on a token that I haven't added the right using statement used to give me an option to automatically add it for me, along with options to create a new class and a few other things.

The last couple days it's no longer giving me the option to add the using statement for me (I use this shortcut all the time). It still has all the other options.

Anyone else run into this? I recently installed Web Essentials 2015.0 RC and Code Maid (code maid was causing problems so I removed it). Could one of those affect it?

like image 456
Jakke Avatar asked May 13 '15 19:05

Jakke


People also ask

How do I enable quick actions and refactoring in Visual Studio?

You can also press Ctrl+. anywhere on a line to see a list of available Quick Actions and refactorings.

How do I see all codes in Visual Studio?

Search across files# VS Code allows you to quickly search over all files in the currently opened folder. Press Ctrl+Shift+F and enter your search term.

How do you jump to a function in Visual Studio?

For jumping to function in currently opened file use Ctrl+Shift+O . From docs: You can navigate symbols inside a file with Ctrl+Shift+O.


1 Answers

I just had the same problem and solved it by renaming the .suo file in ProjectName\.vs\ProjectName\v14 to something VS will not find, like .suo.bak.

This will reset your project specific preferences, like open files, solution explorer state etc. Make a backup of the file or rename it so you can go back if you are missing something important.

If everything works afterwards you can simply delete the renamed file, VS will create a new one.

like image 173
jcb Avatar answered Sep 22 '22 18:09

jcb