Friday, 23 June 2017

Visual Studio Fun With Shift, Ctrl and Alt

Friday afternoon so here's a few cool tips for Visual Studio (especially Visual Studio 2017) in the code window.


  • Left Mouse Click - position cursor (obviously)
  • Alt Left Mouse Click - position cursor (no excitement yet)
  • Shift Left Mouse Click - highlight text between the original cursor position and the new one
  • Ctrl Left Mouse Click - open an embedded window with the code definition of the thing you clicked on! And you can edit this while also editing the main code window!!
  • Left Mouse Drag - Highlights between the starting drag position and the finishing one, wrapping the highlighting at the end of each line onto the start of the next
  • Shift Left Mouse Drag - same as standard left drag
  • Ctrl Left Mouse Drag - Highlights all the whole words between the starting word and the ending word, also wrapping at line ends
  • Alt Left Mouse Drag - Highlights the text in a rectangle regardless of the shape and structure of the lines you are highlighting. When you start editing it replaces the highlighted block but is intelligent enough to make the same replacement on every line highlighted! You can even highlight a zero character width area to perform an insert when you start typing!!
  • Arrow Keys - position cursor (again, obviously)
  • Shift Arrow Keys - highlight text between the original cursor position and the new one
  • Ctrl Arrow Keys - scroll the screen up and down or jump the cursor word by word left and right
  • Alt Arrow Keys - Move the current line or highlighted text up or down relating to the rest of the text!

Sadly the fun ends there because right mouse clicking opens a context menu and absolutely zip all else.



No comments:

Post a Comment