Warning
This code has only been tested on a Windows machine. It may not work as intended on other operating systems.
The Python file above is a Sublime Text plugin that changes the default layout on startup. The code is self-documenting, complete with visualizations.
To add this file to Sublime Text:
- Open Sublime Text and go to
Tools > Developer > New Plugin...to create a new plugin file. - Copy and paste the code from the Python file above into the newly created plugin. Modify the code to your liking (but do not modify the function name), using the diagrams provided in the code as a guide.
- Press
Ctrl + Sto save the plugin in the default...\Sublime Text\Packages\User\.directory. - Restart Sublime Text to see the new changes.
Note
If there are still no changes after restarting Sublime Text, try saving the plugin in this directory: [OS DRIVE]:\Users\[USERNAME]\AppData\Roaming\Sublime Text\Packages\. (Outside of the User directory)