Is there a TypeScript/VSCode setting to autocomplete class properties when initializing classes? Similar to how Dart has "insertArgumentPlaceholders" (see question). I know TS has "completeFunctionCalls" but the functionality doesn't seem to extend to classes.
Currently I'm manually writing out every property, but it's pretty cumbersome for classes with many properties, requiring constant referencing back to the class definition.
For example:
class User {
id: string;
name: string;
public constructor(init?: Partial<User>) {
Object.assign(this, init);
}
}
// Typing "const user = new User.." -> autocomplete/autofill to:
const user = new User({
id: // <placeholder>,
name: // <placeholder>,
});
I'm aware about Copilot and similar extensions, they do not provide the functionality I'm asking about. My question is whether there is a built-in TypeScript feature to auto-suggest/auto-fill class properties. Copilot (and the like) suggest properties which usually don't even exist in classes, I'm curious whether there's a setting that mimics Dart's behavior.