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 Code / Duplicate Reversed |
Duplicates the currently selected text, or the current line if no selection. Reversed: Same as Duplicate Code, but places the new code before the current selection (or line). |
Ctrl+D / 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+} |
Decrease Selection | Shrinks the current text selection by one level (ie. next smallest code block level) |
Ctrl+{, Ctrl+} |
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 / |
Refactoring Suggestions/Helpers | ||
Initialize Field From Constructor | Inserts variable as parameter to constructor and initializes it |
Lightbulb action |
Extract Class or Namespace | Extracts the selected class (or namespace) into a separate file |
Lightbulb action |
Change class modifier | Change class modifier to public, protected, internal, private, or protected internal |
Lightbulb action |