Contributions and suggestions are welcome! Feel free to open an issue or submit a pull request on our GitHub repository.
You can find the contribution guidelines here.
Staircase Imports formats your import statements into a staircase like structure, ensuring that your imports are organized and look cool.
Simply work on your Python files as usual. When you save your file, Staircase Imports automatically formats the import statements in your file, organizing them into a neat structure.
- Python (fully supported)
- JavaScript/TypeScript (fully supported)
- Java (fully supported)
- Support for other languages are in the works.
- Open Visual Studio Code.
- Navigate to the Extensions view.
- Search for "Staircase Imports".
- Click on the Install button to install the extension.
- Choose to enable or disable the extension.
- Choose to format your imports in ascending or descending order.
For example: ascending:
import os
import sys
import time
descending:
import time
import sys
import os
This extension is licensed under MIT License.
Check out the Changelog for all important updates!
1. When declaring multi-line imports, pay attention to where you place opening/closing brackets or parentheses.
The extension will skip over multi-line imports that don't use the correct bracket placement.
Examples of incorrect bracket placement are shown below:
Incorrect bracket placement:
//JavaScript/TypeScript
import // <-- Nothing comes after the import statement
{ // <--- This bracket placement is not currently supported
something,
somethingElse,
anotherThing
} from 'somewhere';
Correct bracket placement:
//JavaScript/TypeScript
import { // <-- Correct bracket placement
something,
somethingElse,
anotherThing
} from 'somewhere';
Same goes for Python:
Incorrect bracket placement:
#Python
from library import (
something,
somethingElse,
anotherThing ) # <-- Incorrect bracket placement
Correct bracket placement:
#Python
from library import (
something,
somethingElse,
anotherThing
) # <-- Correct bracket placement
Enjoy!