Microsoft/TypeScript

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

Open

#46,215 建立於 2021年3月23日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)TypeScript (6,726 fork)batch import
Experience EnhancementHelp Wanted

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 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);
  }
}

貢獻者指南