I'd like a simple keyboard shortcut to swap between the header (h, hpp) and CPP files. Visual Assist for Visual Studio allowed me to do this via ALT + O . Is there a similar keyboard binding for Visual Studio Code?
You can use the extension ms-vscode.cpptools
to Switch Header/Source
. If you're on Mac, then the shortcut is ⌥ O (option + O key). On windows, the shortcut is Alt+O.
Old answer:
There are currently a couple of extensions that support header/source file toggling:
You can find more by searching the words "switch toggle header source" in the extensions tab in vscode.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.