This extension generates Python __init__.py
file(s) respectively and recursively.
- Open your workspace or directory.
- Press
Ctrl(Cmd) + Shift + P
- Just select
Python init Generator: Generate __init__.py
- Happy!
- Select a file or folder.
- When selecting a file, its parent directory will be used as a starting point.
- Mouse right click and select:
Generate __init__.py from here
.
-
pythonInitGenerator.ignoreDirectories
: Regex pattern to ignore directories. Example:{ "pythonInitGenerator.ignoreDirectories": ["\\bdata\\b", "share", "local"] }
Note that values are treated as regex patterns so you need to escape special characters.
MIT
YYYY.mm.dd(Timezone) 2024.02.24(JST) Add the new feature to ignore directories. (Thanks @sisoe24 #17)
2023.01.08(JST) Add the new ability to create init files from the context menu. (Thanks @sisoe24 #8)
2021.06.05(JST) Fix windows path problem. (See also #5)
2021.06.04(JST) Fix #1, sorry it took so long to fix.
2019.10.03(JST) First release