Skip to content

Latest commit

 

History

History
92 lines (90 loc) · 2.66 KB

README.md

File metadata and controls

92 lines (90 loc) · 2.66 KB

HotCommands

Project for creating new commands and shortcuts for Visual Studio.

Hot Commands for Visual Studio provides the follow features:

Feature Notes Shortcut
Toggle Comment Comments or Uncomments selected text or lines,
or if no selection, Comments/Uncomments the current line then moves cursor down one line.
Ctrl+/
Duplicate Selection Duplicates the currently selected text, or the current line if no selection. Ctrl+D
Duplicate Lines Duplicates the entire line(s) of the current selection, or the current line if no selection. Ctrl+Shift+D
Edit.JoinLines Joins the current line with the next line and removes redundant whitespace. Ctrl+Shift+J
Format Code Formats the selected text, or the whole document if no selection. Ctrl+Alt+F
Increase Selection Expands the current text selection by one level (ie. next largest code block level)

Ctrl+{, Ctrl+}
(Same as Ctrl+Shift+[, Ctrl+Shift+[)

Decrease Selection Shrinks the current text selection by one level (ie. next smallest code block level)

Ctrl+{, Ctrl+}
(Same as Ctrl+Shift+[, Ctrl+Shift+[)

Go To Previous Member /
Go To Next Member
Navigates to the previous/next member (ie. Method, Class, Field, Property) Ctrl+Alt+UpArrow /
Ctrl+Alt+DownArrow
Move Member Up /
Move Member Down
Moves the current member above(/below) the previous(/next) member

Ctrl+Shift+Alt+UpArrow /
Ctrl+Shift+Alt+DownArrow 

Refactoring Suggestions/Helpers
Initialize Field From Constructor Inserts variable as parameter to constructor and initializes it

Lightbulb action
(Roslyn Analyzer)

Extract Class or Namespace Extracts the selected class (or namespace) into a separate file

Lightbulb action
(Roslyn Analyzer)

Change class modifier Change class modifier to public, protected, internal, private, or protected internal

Lightbulb action
(Roslyn Analyzer)