Microsoft/TypeScript

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

开放

#46,215 创建于 2021年3月23日

 (1 条评论) (1 个反应) (0 位负责人)TypeScript (13,395 个派生)batch import
Experience EnhancementHelp Wanted

仓库指标

星标
 (108,860 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南