OOJS
Sublime Text Plugin to generate Get/Set methods
Labels language syntax
Details
Installs
- Total 304
- Win 205
- Mac 53
- Linux 46
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
OOJS - Sublime Text plugin
Sublime Text Plugin to generate Get/Set methods
OOJS helps developers to generate Getters and Setters in Object Oriented JavaScript fashion. This plugin is an enhanced version of existing proto snippet.
Install
Install OOJS
with Package Control and restart Sublime.
Getting started
Example
# example.js
var exampleNode = function(){
this.prop1;
this.prop2;
this.prop3;
};
/*In this case, the generated code will look like the following*/
exampleNode.prototype.getProp1 = function(){
return this.prop1;
};
exampleNode.prototype.setProp1(prop1){
this.prop1 = prop1;
};
Tips
Keyboard Shortcuts
ctrl+alt+z will generate the getter and setter for all selected properties.
ctrl+alt+g will generate the getter for all selected properties.
ctrl+alt+s will generate the setter for all selected properties.
Access using Menubar
Select the required properties and then choose
- Edit -> OOJS -> OOGS (Getter + Setter)
- Edit -> OOJS -> OOG (Getter)
- Edit -> OOJS -> OOS (Setter)
Access using Context Menu
Select the required properties and then right click and choose
- OO Getter Setter
- OO Getter
- OO Setter
Access using Sidebar Menu
Select the required properties and then right click on the filename in the sidebar and choose
- OO Getter Setter
- OO Getter
- OO Setter
License
MIT License • © Avinash Jayakumar