Skip to content

Repository files navigation

HotCommands

Project for creating new commands and shortcuts for Visual Studio.

Hot Commands for Visual Studio provides the follow features:

FeatureNotesShortcut
Toggle CommentComments or Uncomments selected text or lines,
or if no selection, Comments/Uncomments the current line then moves cursor down one line.
Ctrl+/
Duplicate SelectionDuplicates the currently selected text, or the current line if no selection.Ctrl+D
Duplicate LinesDuplicates the entire line(s) of the current selection, or the current line if no selection.Ctrl+Shift+D
Edit.JoinLinesJoins the current line with the next line and removes redundant whitespace.Ctrl+Shift+J
Format CodeFormats the selected text, or the whole document if no selection.Ctrl+Alt+F
Increase SelectionExpands the current text selection by one level (ie. next largest code block level)

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

Decrease SelectionShrinks 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 ConstructorInserts variable as parameter to constructor and initializes it

Lightbulb action
(Roslyn Analyzer)

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

Lightbulb action
(Roslyn Analyzer)

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

Lightbulb action
(Roslyn Analyzer)



About

A collection of commands, analyzers, and refactorings for enhanced productivity in Visual Studio IDE

Resources

Stars

53 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages