Test/Production editor tabs¶
Keeps Python test files in the left editor split and Python production files in the right editor split while the mode is enabled. When navigating (e.g., Go to Declaration) from one test/production file to another same-kind file, the target file is opened in the opposite split to preserve your editing context.
When a diff editor is selected, the feature temporarily merges the editor groups so the diff can use the full editor area. Duplicate tabs return to their original groups with their pin and editor state restored when you leave the diff; the configured layout resumes.
Tab moves wait for the destination editor to finish opening before closing the source tab. Layout restoration waits for editor opening and caret navigation before restoring focus and reporting completion.
Test-file classification follows the applicable pytest python_files patterns in addition to collected test data and conftest.py, so custom test file names stay in the test split. Python stub files (.pyi) are also classified and participate in same-kind opposite-split navigation like regular Python files.
How to invoke: Use the Test/Production Split icon in the title toolbar.
The same menu includes Save Editor Layout and Restore Editor Layout. Saving replaces the project's previous snapshot and records the left/right open tabs, focused tab, and its caret position. The versioned snapshot is kept in the project's IDE state (testProductionEditorTabs.xml); restoring replaces the current editor layout and skips files that are no longer available. Snapshots from newer unsupported formats are left untouched rather than restored.