-
Notifications
You must be signed in to change notification settings - Fork 36.4k
Closed
Labels
apifeature-requestRequest for new features or functionalityRequest for new features or functionalityworkbench-editorsManaging of editor widgets in workbench windowManaging of editor widgets in workbench window
Milestone
Description
While using the ms-vscode.cpptools extension, I frequently edit classes in a split-screen view, with the *.cpp file open on the left and the *.h file open on the right. If I add a function definition to my *.h file and select the "Create definition in *.cpp file" option, it opens the *.cpp file in a new tab in the right-hand tab group, rather than switching focus to the already open instance in the left-hand tab group.
I opened a discussion question in the microsoft/vscode-cpptools repo asking if there was an option to change this behavior, and it was requested that I open an issue here as they say this behavior is due to the default behavior of the window.showTextDocument API when called with no options.
Steps to Reproduce:
- Install the
ms-vscode.cpptoolsextension - Create an
example.cppfile - Create an
example.hfile - Dock the
example.hfile to the right of theexample.cppfile - Add an
Exampleclass definition in theexample.hfile - Add a
void Testing();method definition to theExampleclass - On the
Testingmethod definition, select theCreate definition of 'Testing' in example.cppQuick Fix option
RedCMD
Metadata
Metadata
Assignees
Labels
apifeature-requestRequest for new features or functionalityRequest for new features or functionalityworkbench-editorsManaging of editor widgets in workbench windowManaging of editor widgets in workbench window