Zulip Chat Archive
Stream: mathlib4
Topic: updating names in VSCode
Johan Commelin (Jan 13 2023 at 12:42):
I wanted to share a little workflow for updating names (in VSCode). Maybe all you've you know this already. I figured it out yesterday.
- select
i_am_snake_case -
run the following loop:
- hit
Ctrl-Dto select the next occurence - if the occurence should be skipped, hit
Ctrl-Kto "kill" that selection - (if necessary, hit
Ctrl-Uto backtrack)
- hit
-
after you have selected all occurences of
is_specialthat need to be changed, make the edit toiAmCamelCase.
Ruben Van de Velde (Jan 13 2023 at 12:55):
Huh, interesting
Eric Wieser (Jan 13 2023 at 13:30):
Note that if you put your cursor before i_am_snake_case instead of selecting it, it does a word-based match
Last updated: May 02 2025 at 03:31 UTC