Sort and Remove unused usings in C# code -


is there way sort , remove unused usings in c# in visual studio 2015 , 2017?

if not, addition future visual studio code version?

there command built vscode out removing unused usings.

the default keybinding defined as:

{ "key": "ctrl+.", "command": "editor.action.quickfix",                       "when": "editorhascodeactionsprovider &&                                 editortextfocus &&                                 !editorreadonly" }, 

as sorting usings: did not find built explicitly using statements, there command sort lines. add similar following keybindings file:

{ "key": "ctrl+q", "command": "editor.action.sortlinesascending",                       "when": "editorfocus && !editorreadonly" }, 

then, select using statements , press ctrl+q sort them.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -