Skip to content

Automatically load counterpart files in a separate pane, like Xcode Assistant Editor #10532

Closed as not planned
@csnover

Description

@csnover

Feature Request

This may be the same request as #10346; the description in that ticket was not totally clear. Hopefully this one is clear enough to be actionable. Please feel free to close/merge it into that ticket if they are the same thing.

Xcode has a feature called Assistant Editor which creates a split view where the pane on the right automatically loads the counterpart file for whatever is loaded in the main editor on the left. So, for example, if you load a .c file in the main editor, Xcode will automatically load the corresponding .h file in the assistant editor (or vice-versa). This request is to add this feature to vscode-cpptools.

For implementation, the built-in markdown-language-features extension seems like a good place to start since its “Open Preview” commands work exactly the way this feature should be implemented (in particular, “Open Preview to the Side”), except that here the ‘preview’ would be another editor for the counterpart file. (For clarity: both Xcode Assistant Editor and the VSCode Markdown Preview use one tab and change the content automatically based on to what other tab is currently active, rather than opening new tabs for each source file.)

If this sounds like something that would be accepted as a new feature, I may try implementing it myself, depending on free time. If this already exists, my apologies and let me know where it is.

Thanks,

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions