vscode-gengetset icon indicating copy to clipboard operation
vscode-gengetset copied to clipboard

Getter and Setters specify indent setting

Open benscabbia opened this issue 7 years ago • 4 comments

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. image

Could we have a setting to specify the indentation?

benscabbia avatar Feb 25 '18 11:02 benscabbia

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"

robert-sjoblom avatar Jul 24 '18 14:07 robert-sjoblom

Which version of vscode are you using? @robert-sjoblom

cybertim avatar Jul 24 '18 15:07 cybertim

v1.25.1

robert-sjoblom avatar Jul 24 '18 15:07 robert-sjoblom

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)?

cybertim avatar Jul 25 '18 09:07 cybertim