Is it possible to create a shortcut to remove unused applications to a class?

I usually try to clean up unused usage code and this reason can be answered.

Whenever I want to do this, I have to use my mouse and it can be a little annoying, so the reason I thought was in no time to achieve this. eg:

enter image description here

And what's the result.

enter image description here

I couldn't find anything related that seems useful.

+3


source to share


2 answers


On the Tools menu, select Options , open the Environment folder, and select Keyboard .. p>

On the Keyboard page, select a keyboard mapping scheme .

In the Show commands containing text box, typeEdit.RemoveUnusedUsings



In the scroll list, select the command you want to execute. From the Use New Shortcut drop-down list, select the environment in which you want to use the shortcut. Select Global if you want the shortcut to work in all contexts.

Place your cursor in the Press Key combination text box, and then press and hold the non-text key or non-text key combination (such as Alt, Ctrl, or Shift) and enter the text key of your choice. Select "Assign".

source

+7


source


Tools> Option, go to the Keyboard tab. Find "Edit.RemoveAndSort" which command will remove unused entries and sort them and then set shortcut



+2


source







All Articles