https://github.com/hamolicious/fillin-it
A VSCode extension that will automatically fill in the __init__() method using the provided arguments
https://github.com/hamolicious/fillin-it
extension visual-studio-code visual-studio-extension vscode vscode-extension
Last synced: about 1 month ago
JSON representation
A VSCode extension that will automatically fill in the __init__() method using the provided arguments
- Host: GitHub
- URL: https://github.com/hamolicious/fillin-it
- Owner: hamolicious
- License: wtfpl
- Created: 2021-03-11T12:45:27.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T01:44:22.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T05:51:21.134Z (3 months ago)
- Topics: extension, visual-studio-code, visual-studio-extension, vscode, vscode-extension
- Language: JavaScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=Hamolicious.fillinit
- Size: 1.24 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Fillin' it
**There is a new [market place page and download](https://marketplace.visualstudio.com/items?itemName=Hamolicious.fillinit)**[](https://code.visualstudio.com/)
[](https://marketplace.visualstudio.com/items?itemName=Hamolicious.fillinit)
[](https://marketplace.visualstudio.com/items?itemName=Hamolicious.fillinit)
A VSCode extension that will automatically fill in the ```__init__()``` method using the provided arguments
## Features
Fills out the ```__init__()``` method with the passed in arguments
```python
class SomeClass:
def __init__(self, arg1, arg2, arg3):
self.arg1 = arg1
self.arg2 = arg2
self.arg3 = arg3
```## How to use
Type out a class like so:
```python
class SomeClass:
def __init__(self, arg1, arg2, arg3):
```
and leave the cursor somewhere in the vicinity of the dunder methodThen open the command pallete in VSCode and type "```Fill init```", hit enter and the class will be filled in... alternatively, you can asign a keybind to the command and use a keybind to fill in the class.
## Requirements
*currently not applicable*## Extension Settings
* `fillinit.maxSearchSize` : The maximum amount of lines to search for a ```__init__``` method (centered around the cursor)## Known Issues
* ~~Optional arguments containing lists are not parsed correctly i.e. `arg1=[255, 255, 255]`~~## TODO
- [ ] Add a testing framework and write unit tests