HotCommands
HotCommands copied to clipboard
A collection of commands, analyzers, and refactorings for enhanced productivity in Visual Studio IDE
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+} |
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 |
