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-D
to select the next occurence - if the occurence should be skipped, hit
Ctrl-K
to "kill" that selection - (if necessary, hit
Ctrl-U
to backtrack)
- hit
-
after you have selected all occurences of
is_special
that 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: Dec 20 2023 at 11:08 UTC