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.
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.
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.