Microsoft/TypeScript

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

オープン

#46,215 opened on 2021/03/23

 (1 件のコメント) (1 件のリアクション) (0 人の担当者)TypeScript (13,395 件のフォーク)batch import
Experience EnhancementHelp Wanted

Repository metrics

Stars
 (108,860 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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);
  }
}

コントリビューターガイド