VS Shortcuts - Printer friendly MarkDown

This commit is contained in:
Unknown
2017-09-19 11:55:02 +01:00
parent 4b9e9455a0
commit ce7105b2d0

View File

@ -1,50 +1,62 @@
## Copy/Paste ## Copy/Paste
Ctrl + Z Undo | Key Combination | Description |
Ctrl + Shift + Z Redo | ---------------- | --------------------- |
Ctrl + X Cut (and entire line) | Ctrl + Z | Undo |
Ctrl + C Copy | Ctrl + Shift + Z | Redo |
Ctrl + V Paste | Ctrl + X | Cut (and entire line) |
| Ctrl + C | Copy |
| Ctrl + V | Paste |
## Text Manipulation ## Text Manipulation
Ctrl + Click Select current word | Key Combination | Description |
Alt + Drag Select area for multi-line edit | --------------- | ------------------------------- |
Alt + Up/Down Move lines | Ctrl + Click | Select current word |
| Alt + Drag | Select area for multi-line edit |
| Alt + Up/Down | Move lines |
## Search & Navigate ## Search & Navigate
F12 Go to reference | Key Combination | Description |
Ctrl + T Go to... find specific class or type etc... | ---------------- | --------------------------------- |
Ctrl + ; Search solution explorer | F12 | Go to reference |
Ctrl + Tab Cycle open document | Ctrl + T | Go to... |
Ctrl + - Step backwards in cursor position | Ctrl + ; | Search Solution Explorer |
Ctrl + Shift + - Step forwards in cursor position | Ctrl + Tab | Cycle open documents |
Ctrl + Shift + F Find all | Ctrl + - | Step backwards in cursor position |
Ctrl + K + K Set/remove bookmark | Ctrl + Shift + - | Step forwards in cursor position |
Ctrl + K + N Next bookmark | Ctrl + Shift + F | Find All |
Ctrl + K + P Previous Bookmark | Ctrl + K + K | Set/Remove Bookmark |
| Ctrl + K + N | Next Bookmark |
| Ctrl + K + P | Previous Bookmark |
## Environment ## Environment
Ctrl + Shift + Enter Full Screen | Key Combination | Description |
| -------------------- | ----------- |
| Ctrl + Shift + Enter | Full Screen |
## Coding ## Coding
Ctrl + Shift + B Build | Key Combination | Description |
Ctrl + . Auto-complete suggestions | ---------------- | --------------------------------- |
Ctrl + R + R Rename variable/value | Ctrl + Shift + B | Build |
Ctrl + K + C Comment selection | Ctrl + . | Auto-complete suggestions |
Ctrl + K + U Uncomment selection | Ctrl + R + R | Rename variable/value |
Ctrl + M + M Expand/Collapse all code | Ctrl + K + C | Comment selected text |
Ctrl + M + O Collapse to definition | Ctrl + K + U | Uncomment selected text |
Ctrl + Q Quick Launch | Ctrl + M + M | Expand/Collapse code |
| Ctrl + M + O | Collapse code to definition level |
| Ctrl + Q | Quick Launch |
## Debugging ## Debugging
F5 Build and Run | Key Combination | Description |
F10 Step Over | --------------- | ------------- |
F11 Step Into | F5 | Build and Run |
| F10 | Step Over |
| F11 | Step Into |
## Key Bindings ## Key Bindings
@ -68,29 +80,35 @@ Then this file will run every time your computer starts. As this is the first ti
Now pressing the following keys will work. Now pressing the following keys will work.
Win + W Close current window | Key Combination | Description |
Win + Q Close current program | --------------- | --------------------- |
| Win + W | Close current window |
| Win + Q | Close current program |
## Screenshots ## Screenshots
Install LightShot from https://app.prntscr.com/ Install LightShot from https://app.prntscr.com/
Right-click the Taskbar Icon then click `Options`. Change the `General Hotkey` to your desired shortcut. In my case I use Ctrl + Win + S Right-click the Taskbar Icon then click `Options`. Change the `General Hotkey` to your desired shortcut. In my case I use `Ctrl + Win + S`
## Snippets ## Snippets
Type the snippet below and then double-tab to execute Type the snippet below and then double-tab to execute
/// Create summary comment | Key Combination | Description |
ctor Create constructor | --------------- | --------------------------- |
region Creates a new region | /// | Create Summary comment |
| ctor | Create constructor function |
| region | Create region |
## Surround Snippets ## Surround Snippets
Ctrl + K + S Surround With | Key Combination | Description |
| --------------- | ------------- |
| Ctrl + K + S | Surround With |
The only snippet I use is Region. The only snippet I use is **Region**.
Built in snippets are stored in `C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC#\Snippets\1033\Visual C#`. Open notepad as administrator then open the files to edit them as desired. Built in snippets are stored in `C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC#\Snippets\1033\Visual C#`. Open notepad as administrator then open the files to edit them as desired.