Skip to content

Create getters and setters for several languages for Visual Studio Code automatically!

License

Notifications You must be signed in to change notification settings

Gabsii/getter-setter-generator

Repository files navigation

getter-setter-generator README

This extension generates get and set methods from class variable declarations.

Features

This extension allows you to automatically generate getters and setters with one single command.

  • Auto indentation detection. Your code won't break.
  • Supports multiple variables at once
  • Generate Getter or Setter separately
  • Generates a Getter/Setter code documentation. Automatically!

Simply call the Extension with CTRL + ALT + D

Generate Getter/Setter or just use the Command Palette and search for Generate Getter/Setter

Planned features

  • More Language Support
    • Java
    • JavaScript/TypeScript
    • C++
    • C#
    • Python
    • Go
    • PHP
    • Ruby
    • React
  • Separate Commands for Getter/Setter
  • Context Menu
  • Generate Getter/Setter without selection
  • Automatically generate Code Documentation

Release Notes

1.3.0

  • Added JavaScript Support
  • Added TypeScript Support
  • Updated PHP Code Style/Documentation (thanks for your submissions)
  • Separate Commands for Getter and Setter method

1.2.0

  • Added Python Support
  • Added C++ Support

1.1.0

  • Added PHP Support
  • New Known Issue (-> Constructor Variables)

1.0.0

  • Initial release of getter-setter-generator for VS Code

Known issues

  • Make sure whole lines are selected for indentation purposes
  • Problems with constructor variables

Authors and Collaborators

  • Lukas Samir Gabsi
  • The Katze for his knowledge on C++/C#

License

GPLv3 © Gabsii

Contribution

Feel free to send me a PR or an issue to improve the code :)

Enjoy!

About

Create getters and setters for several languages for Visual Studio Code automatically!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published