vscode-gengetset
vscode-gengetset copied to clipboard
Getter and Setters specify indent setting
I am using tslint with the option: "indent": [ true, "spaces" ]
Generating getter/setters defaults to tabs, which then forces me to have to change the tabs to spaces.
Could we have a setting to specify the indentation?
One of the reasons I used this toolbox was for the getter/setter.
VSCode has native support for this, though. I found out today. It's part of its refactor functionality.
- Select property (_data).
- CTRL-Shift-R to get the refactor menu up.
- Select "generate 'get' and 'set' accessors"
Which version of vscode are you using? @robert-sjoblom
v1.25.1
I can't seem to reproduce this, all I get is this message: 'No refactorings available'. Are you sure this isn't implemented by one of the installed extensions? Or maybe it is in another language (not Typescript)?