Size: 2650
Comment:
|
Size: 2938
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 56: | Line 56: |
==== Editing related ==== |
|
Line 59: | Line 61: |
=== CLI shortcuts === | Navigation-related: || '''Shortcut''' || '''Action''' || '''Reference''' || || Ctrl+P || Open file || || || Ctrl+T || Symbols in workspace || || || Ctrl+Shift+O || Symbols in current file || https://twitter.com/Tyriar/status/1018953407787233280 || ==== CLI shortcuts ==== |
VS2015 minimal installation
Visual Studio 2015 Build Tools
Lightweight C++ Installation in Visual Studio “15”
Building Visual Studio projects on the command-line
Generate a CMake project, targeting Visual Studio 2015:
cd C:\Users\Public\Documents mkdir build cd build cmake --config Release -G "Visual Studio 14 2015 Win64" ` -D CMAKE_PREFIX_PATH=M:\dependencies\ ` N:\Documents\GitHub\Altus_Standalone # Build using 4 CPUs cmake --build . --config Release -- /m:4
For building a project generated by CMake, and using Visual Studio 2015:
& "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" .\altus.sln /p:Configuration=Release /maxcpucount
See what DLL dependencies an EXE depends upon
# Open Visual Studio Native Tools command prompt dumpbin.exe /dependents whatever.exe
Offline installation
See: https://www.techtronic.us/blog/post/technology/visual-studio-2012-update-2-offline-installer/
tl;dr: Run offline installer with "/Layout". For MSVC15 (Visual Studio 2016), it was changed to --layout, which must be given an absolute path.
Version Naming
Visual Studio 2012 is "11"; Visual Studio 2013 is "12; Visual Studio 2015 is "14; Visual Studio 2017 is "15".
Boost uses msvc-11.0, msvc-14.0, etc.
Visual Studio Code
Keyboard shortcuts
Keyboard shortcuts I can never remember.
Editing related
Shortcut |
Action |
Reference |
Ctrl+Shift+L |
Expand the focus of the current word, select all occurences in document, and change simultaneously |
Navigation-related:
Shortcut |
Action |
Reference |
Ctrl+P |
Open file |
|
Ctrl+T |
Symbols in workspace |
|
Ctrl+Shift+O |
Symbols in current file |
CLI shortcuts
From https://twitter.com/Tyriar/status/1013787785973547008:
code .: Open the current folder in a new window
code -r .: Open the current folder in the current window
code -a .: Add the current folder to the current window
Etc
Best unknown MSVC flag: d2cgsummary. Option highlights the functions that compile the slowest. Officially become documented in Visual Studio 2017: Throughput improvements & advice