https://github.com/boris-code/createinit
auto create __init__.py
https://github.com/boris-code/createinit
python sublime
Last synced: 11 months ago
JSON representation
auto create __init__.py
- Host: GitHub
- URL: https://github.com/boris-code/createinit
- Owner: Boris-code
- Created: 2018-09-29T05:20:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-29T06:50:10.000Z (over 7 years ago)
- Last Synced: 2025-02-01T06:27:40.199Z (about 1 year ago)
- Topics: python, sublime
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CreateInit
This Create Init plugin for Sublime Text to auto create `__init__.py` that import all python files into `__all__`
# Plugin Installation
**With the Package Control plugin:** The easiest way to install
`CreateInit` is through Package Control, which can be found at this site:
Once you install Package Control, restart Sublime Text and bring up the
Command Palette (`Command+Shift+P` on OS X, `Control+Shift+P` on
Linux/Windows). Select "Package Control: Install Package", wait while
Package Control fetches the latest package list, then select
`CreateInit` when the list appears. The advantage of using this
method is that Package Control will automatically keep CreateInit
up to date with the latest version.
**Without Git:** Download the latest source from [GitHub](https://github.com/Boris-code/CreateInit) and copy
the whole directory into the Packages directory.
**With Git:** Clone the repository in your Sublime Text Packages directory, located somewhere in user's "Home" directory:
git clone https://github.com/Boris-code/CreateInit.git
The "Packages" packages directory is located differently in different
platforms. To access the directory use:
- OS X:
Sublime Text -> Preferences -> Browse Packages...
- Linux:
Preferences -> Browse Packages...
- Windows:
Preferences -> Browse Packages...
# Using
- Start typing code as usual. When you need create `__init__.py`, You can use bellow shortcut key.
For Mac OS X:
- `command + alt + i`
For Linux:
- `ctrl + alt + i`
For Windows:
- `ctrl + alt +i`