Microsoft/vscode

Multiple Cursors - Preserve Case

Open

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

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

描述

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.

貢獻者指南

Multiple Cursors - Preserve Case · Microsoft/vscode#106502 | Good First Issue