OOJS
Sublime Text Plugin to generate Get/Set methods
Labels language syntax
Details
Installs
- Total 309
- Win 208
- Mac 55
- Linux 46
May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 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 | 1 | 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 | 1 | 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