Microsoft/TypeScript

Make “declare property… ” quick fix move focus to the newly declared property

Open

#46 215 ouverte le 23 mars 2021

Voir sur GitHub
 (1 commentaire) (1 réaction) (0 assignés)TypeScript (6 726 forks)batch import
Experience EnhancementHelp Wanted

Métriques du dépôt

Stars
 (48 455 stars)
Métriques de merge PR
 (Merge moyen 6j 17h) (9 PRs mergées en 30 j)

Description

TS Template added by @mjbvz

TypeScript Version: 4.4

Search Terms

  • code action
  • quick fix
  • refactoring

When running the declare property... quick fix on boop in the below code, TS auto-inserts boop: any;, but I'd really prefer for it to be private boop: number or something, if my cursor moved to the insert location or I was prompted for the access level and type or something that'd be nice:

class A {
  constructor() {
    console.log(this.boop);
  }
}

Guide contributeur