Showing posts with label keyboard. Show all posts
Showing posts with label keyboard. Show all posts

Wednesday, September 18, 2019

Visual Studio 2019 - Favorite Less-Known Keyboard Shortcuts

Some of the less well-known keyboard shortcuts in Visual Studio 2019 that I enjoy.

Ctrl Q => VS command search
Alt ~ => special context menu
Ctrl Shift V - clipboard history
Ctrl ; => search solution explorer
Ctrl Alt Click => set multi-caret edit locations
Ctrl Alt . => select next multi-caret edit location
Ctrl Alt ; => select all multi-caret edit locations
Ctrl Shift Backspace => go to last edit location
Ctrl - => go to last cursor location
Ctrl T => type r for recent files opened
Ctrl K Ctrl X => insert code snippet
Ctrl K Ctrl S => surround code with snippet
Shift Alt [ => go to containing block

There are many other ones demo'd in this Microsoft video.

Monday, April 1, 2013

Easily open command prompt from Windows Explorer

When using Windows Explorer it is nice to open a command prompt with the initial directory from the one selected. I've known for years you could select a directory in the right window pane, then hold SHIFT and right click to get the context menu; the context menu contains an "Open command window here" option. Nice.

I recently learned there is another easy way to open the command prompt without using the mouse. With the directory selected in the right window pane, press F4 to move to the directory path input box at the top of the window, then simply type "cmd" and press Enter.

Presto! Look Mom, no mouse!

Can't RDP? How to enable / disable virtual machine firewall for Azure VM

Oh no!  I accidentally blocked the RDP port on an Azure virtual machine which resulted in not being able to log into the VM anymore.  I did ...