Skip to content

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

Notifications You must be signed in to change notification settings

tamlin-mike/HotCommands

 
 

Repository files navigation

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 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+}
(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)



About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%