Microsoft/vscode

Multiple Cursors - Preserve Case

Open

#106.502 aperta il 11 set 2020

Vedi su GitHub
 (11 commenti) (63 reazioni) (1 assegnatario)TypeScript (10.221 fork)batch import
editor-multicursorfeature-requesthelp wanted

Metriche repository

Star
 (74.848 star)
Metriche merge PR
 (Merge medio 11h 43m) (1000 PR mergiate in 30 g)

Descrizione

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.

Guida contributor