Microsoft/vscode

Multiple Cursors - Preserve Case

Open

#106,502 opened on Sep 11, 2020

View on GitHub
 (11 comments) (63 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
editor-multicursorfeature-requesthelp wanted

Description

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.

Contributor guide

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