User Tools

Site Tools


notes:tools:visualstudio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:tools:visualstudio [2019/01/11]
leszek [Visual Studio]
notes:tools:visualstudio [2019/04/20] (current)
leszek
Line 1: Line 1:
 ====== Visual Studio ====== ====== Visual Studio ======
  
-Example ​of post-build or pre-build event command lines:+Examples ​of post-build or pre-build event command lines:
 <code text> <code text>
 xcopy "​$(ProjectDir)..\MyProject\*.*"​ "​$(TargetDir)"​ /Y xcopy "​$(ProjectDir)..\MyProject\*.*"​ "​$(TargetDir)"​ /Y
Line 13: Line 13:
 xcopy /Y /S "​$(SolutionDir)SharedFiles\*"​ "​$(TargetDir)"  ​ xcopy /Y /S "​$(SolutionDir)SharedFiles\*"​ "​$(TargetDir)"  ​
 </​code>​ </​code>​
 +
  
 Track active item in Solution Explorer: Track active item in Solution Explorer:
Line 22: Line 23:
 ^  Shortcut ​ ^  Description ​ ^ ^  Shortcut ​ ^  Description ​ ^
 | - Set the cursor on the name of the interface\\ - Press Ctrl + .\\ - Select "​Implement interface"​ | Implement an interface | | - Set the cursor on the name of the interface\\ - Press Ctrl + .\\ - Select "​Implement interface"​ | Implement an interface |
 +| Ctrl+K, Ctrl+X | Show code snippets |
 | Ctrl+K, Ctrl+S | Surround a highligted block of code with if, try/catch, for, #region, etc. | | Ctrl+K, Ctrl+S | Surround a highligted block of code with if, try/catch, for, #region, etc. |
 | Ctrl+R, Ctrl+M | Extract a method | | Ctrl+R, Ctrl+M | Extract a method |
Line 46: Line 48:
   * Shift + Right-click in a window > Open PowerShell window here   * Shift + Right-click in a window > Open PowerShell window here
  
 +Links:
 +  * [[https://​docs.microsoft.com/​en-us/​visualstudio/​ide/​walkthrough-creating-a-code-snippet?​view=vs-2017|Walkthrough:​ Create a code snippet]]
  
notes/tools/visualstudio.1547218655.txt.gz ยท Last modified: 2019/01/11 by leszek