It's a time saver if you know every instance in the file needs to be changed, but if not you could also use the find and replace and select individual instances.
@JamesQQuick10 ай бұрын
Yep, that's very true!
@ajmalsalim10 ай бұрын
Try CMD + Shift + L on Mac You can also select the text casing on the top right overlay option.
@CrazySalieri8 ай бұрын
Which font he uses? It is neat
@saketabhishek514710 ай бұрын
Nice Tip James !!
@JamesQQuick10 ай бұрын
Glad you liked it!
@asdflkjasdfasdlfkj10 ай бұрын
really appreciate keep sharing vids like this ❤
@ondrejhavazik412410 ай бұрын
Hi James, did you see a latest version of VS Code 1.87 that has a copilot rename suggestions? It seems really cool, but in my case somehow doesn't work. Did you try that already? Thanks!
@ShutDownXXX710 ай бұрын
I prefer select the variable or function name and hit Ctrl + Shift + F to search across multiple files, it has a case sensitive option too
@HappyCheeryChap5 ай бұрын
Why would you prefer that? More likely mess things up.
@JustiXNL10 ай бұрын
I found this doesn't always work correctly, so I pref to just CTRL + D until I selected every with that specific name.
@JamesQQuick10 ай бұрын
What kind of issues have you had? Also CTRL+D only works in one single file not across files. That's a huge benefit of the refactor way
@dancehalllyrics130310 ай бұрын
Instead of hitting CTRL+D until having selected all instances, try hitting CTRL+SHIFT+L instead. Sidenote: It selects every instance no matter its case. If you want to preserve the case of each instance and not having to manually go through each instance to check the casing is correct, I can highly recommend the extension called “Multiple cursor case preserve”, which does exactly that: keeps the casing of any highlighted instance.
@braveitor10 ай бұрын
Nice tip!!
@JamesQQuick10 ай бұрын
Glad to help!
@BlissAden6 ай бұрын
How to do this with windows computer?
@NickyTheRook10 ай бұрын
My favourite LSP feature. In any editor.
@JamesQQuick10 ай бұрын
What is LSP?
@NickyTheRook10 ай бұрын
Language Server Protocol. The language server that makes this work. Like TypeScripts, or Rusts, etc@@JamesQQuick