Common shortcut keys
Notes
- Notes: Ctrl+k, Ctrl+c
- Uncomment: Ctrl+k, Ctrl+u
Code View Shortcuts
- Go to Definition: F12
- Back: Ctrl+-
- Forward: Ctrl+Shift+-
code formatting
- Ctrl+k+f
Code writing shortcuts
Force display of IntelliSense: Ctrl+j
Editor zoom: Ctrl+Shift+> (zoom in), Ctrl+Shift+< (zoom out)
Add external header files and libraries in c/c++ projects
1. Add the header file directory of the project: Project - Properties - Configuration Properties - c/c++ - General - Additional Include Directories: Add the header file storage directory.
2. Add the lib static library path referenced by the file: Project - Properties - Configuration Properties - Linker - General - Additional Library Directory: Add the lib file storage directory.
- Then add the lib file name referenced by the project: Project - Properties - Configuration Properties - Linker - Input - Additional Dependencies: Add the lib file name.
- Add the application's lib file name to the code: #pragma comment(lib,"wpcap.lib")
3. Add the dll dynamic library referenced by the project: put the referenced dll in the directory where the executable file of the project is located.
4. Project - Properties, if you need to configure, select [All Configurations], otherwise the configurations of Debug and Release are different.