The BEST Way to Refactor in VS Code

  Рет қаралды 8,656

James Q Quick

James Q Quick

Күн бұрын

Пікірлер: 23
@codingtranquility
@codingtranquility 10 ай бұрын
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.
@JamesQQuick
@JamesQQuick 10 ай бұрын
Yep, that's very true!
@ajmalsalim
@ajmalsalim 10 ай бұрын
Try CMD + Shift + L on Mac You can also select the text casing on the top right overlay option.
@CrazySalieri
@CrazySalieri 8 ай бұрын
Which font he uses? It is neat
@saketabhishek5147
@saketabhishek5147 10 ай бұрын
Nice Tip James !!
@JamesQQuick
@JamesQQuick 10 ай бұрын
Glad you liked it!
@asdflkjasdfasdlfkj
@asdflkjasdfasdlfkj 10 ай бұрын
really appreciate keep sharing vids like this ❤
@ondrejhavazik4124
@ondrejhavazik4124 10 ай бұрын
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!
@ShutDownXXX7
@ShutDownXXX7 10 ай бұрын
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
@HappyCheeryChap
@HappyCheeryChap 5 ай бұрын
Why would you prefer that? More likely mess things up.
@JustiXNL
@JustiXNL 10 ай бұрын
I found this doesn't always work correctly, so I pref to just CTRL + D until I selected every with that specific name.
@JamesQQuick
@JamesQQuick 10 ай бұрын
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
@dancehalllyrics1303
@dancehalllyrics1303 10 ай бұрын
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.
@braveitor
@braveitor 10 ай бұрын
Nice tip!!
@JamesQQuick
@JamesQQuick 10 ай бұрын
Glad to help!
@BlissAden
@BlissAden 6 ай бұрын
How to do this with windows computer?
@NickyTheRook
@NickyTheRook 10 ай бұрын
My favourite LSP feature. In any editor.
@JamesQQuick
@JamesQQuick 10 ай бұрын
What is LSP?
@NickyTheRook
@NickyTheRook 10 ай бұрын
Language Server Protocol. The language server that makes this work. Like TypeScripts, or Rusts, etc@@JamesQQuick
@exclusivenote
@exclusivenote 5 ай бұрын
Bro stop with the acronyms. It sounds silly
@aysommer
@aysommer 10 ай бұрын
Wow!!! I don't knew!!!
@ChatGPT-cb5yp
@ChatGPT-cb5yp 5 ай бұрын
yeeeeeeeeeeeeehhhhh
@NicholasWongCQ
@NicholasWongCQ 3 ай бұрын
Codiumate
Why I switched from VSCode to Zed.
6:07
Flo Woelki
Рет қаралды 37 М.
How to get started with VS Code
17:48
Kevin Powell
Рет қаралды 121 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Cleaner Code: 3 Ways You Can Write Cleaner Code
7:41
Coding with Lewis
Рет қаралды 100 М.
What is Refactoring, and why is it so important?
5:14
nullQueries
Рет қаралды 11 М.
Mastering VIM Motions in VSCode (Mouseless development)
7:41
as const: the most underrated TypeScript feature
5:38
Matt Pocock
Рет қаралды 129 М.
Code faster with these VS Code shortcuts
8:44
Coder Coder
Рет қаралды 405 М.
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 945 М.
This VS Code AI Coding Assistant Is A Game Changer!
14:27
codeSTACKr
Рет қаралды 211 М.
The Untold Story of VS Code
12:42
CodeSource
Рет қаралды 128 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,8 МЛН
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН