Microsoft/vscode

Multiple Cursors - Preserve Case

Open

#106,502 建立於 2020年9月11日

在 GitHub 查看
 (11 留言) (63 反應) (1 負責人)TypeScript (10,221 fork)batch import
editor-multicursorfeature-requesthelp wanted

倉庫指標

Star
 (74,848 star)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

Use Case Take the following: const [value, setValue] = useState();

I want to change it to: const [array, setArray] = useState();

Feature Ask It would be great to:

  1. Select value.
  2. Press Ctrl+D.
  3. Type array.
  4. See that both symbols have changed, while preserving their proper casing.

Right now, I need to conduct two edit operations to do this. Alternatively, I can use a single Find & Replace operation, but that would be disproportionately time-consuming for this task, as well as less precise.

貢獻者指南