Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

hamolicious/Fillin-it

Repository files navigation

Fillin' it

I no longer use VSCode and therefore will not be maintaining this package.

There is a new market place page and download

made-for-VSCode Badge for rating for Visual Studio Code extension Hamolicious.fillinit maintained? yes boss!

A VSCode extension that will automatically fill in the __init__() method using the provided arguments GIF preview of the extension

Features

Fills out the __init__() method with the passed in arguments

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:

class SomeClass:
	def __init__(self, arg1, arg2, arg3):

and leave the cursor somewhere in the vicinity of the dunder method

Then 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

About

A VSCode extension that will automatically fill in the __init__() method using the provided arguments

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5