implement all members code generation

When using typescript and having an interface to a class it is possible to automatically let webstorm generate all members required.

 

However I wonder if it is possible to modify how certain members are implemented? IE instead of for simple members just being

 

```
   [variablename]: [type];
```

We always (for a set of objects) have this getter/setter structure:

```
    get [variablename](): [type] {
        return this.getData('[variablename]');
    }
    set [variablename](value: [type]) {
        this.setData('[variablename]', value);
    }
```

I wonder if I can modify how webstorm implements the interfaces? In the settings -> file and code templates -> code, I cannot see anything regarding "members".

 

Even if full control is not possible, it would be really nice to implement "as getters-setters"...

0
1 comment

This can't be currently done; if you miss this feature, please file a feature request to youtrack, https://youtrack.jetbrains.com/issues/WEB

0

Please sign in to leave a comment.