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
Post a Comment