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 -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -