DON'T Use the File Explorer in VS Code!

DON'T Use the File Explorer in VS Code!

James Q Quick

1 год назад

73,518 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

cachipun
cachipun - 02.09.2023 20:03

much more faster and without extensions: use the terminal

Ответить
Jeremy Kolassa
Jeremy Kolassa - 19.07.2023 16:49

Man, I gotta say, I love your videos and your content, and I actually do really like this -- but I have encountered one edge case pitfall. I'm working at a company now that is going all-in on a "low-code" solution for end users in our industry. It's a solution and ecosystem that is based on widgets, and according to the code standards laid out by this solution's creators, every widget must name its core files the same way. So if you're working with multiple widgets at once -- which we frequently have to do because many times these widgets aren't used on their own, but in a mini-ecosystem of sorts -- if you use this method, you'll frequently end up opening a file that's named what you want, but it is in a completely different widget, and can really screw you up sometimes.

Just a warning to other devs, make sure you're paying attention to the entire file path too!

Ответить
Nathan Hall
Nathan Hall - 03.06.2023 13:13

I fail to see the reasoning to completely avoid the file explorer. If the purpose is to optimize efficiency and speed, I believe the same can be achieved by using keyboard shortcuts within the file explorer. It's simple to quickly navigate to a specific location within the file explorer, and execute various CRUD operations such as delete, rename, create new file, and more, solely relying on keyboard shortcuts without the need for any additional extensions.

In my opinion, a better argument would be to advocate for the use of the correct tool for each task. Most of the time, there is no need to rely on the file explorer to locate files, mainly when one is already familiar with the file name or parts of the path.

Ответить
Shadows
Shadows - 02.06.2023 21:05

What font do you use bro ?

Ответить
ken
ken - 01.06.2023 20:36

my english bad 😔 but how to set open folder only at "dekstop" mine when i open new folder why they show "🏠 ken" user at mac. ugh i think ppl dont know what am i saying 😭

Ответить
Cezar Augusto Mezzalira
Cezar Augusto Mezzalira - 29.05.2023 01:23

Thanks for the tips James!

Ответить
Iblamefps
Iblamefps - 28.05.2023 19:25

at that point just use neovim with plugins

Ответить
Eduard
Eduard - 20.05.2023 12:22

Thanks for the tip. I would not say Don't use the File Explorer, but use better tools instead, since it still gives you a handy overview at certain moments, but that's just my nitpick.
File Utils seem a great idea, and possibile the advanced new file plugin. However, I think I am not going to replace my normal new file keybinding, because I do not always want to save a file, because in many cases I simply use new file tabs to temporarily store tekst fragments that I don't want to save in my project.

Ответить
Nishant Neeraj
Nishant Neeraj - 18.05.2023 11:52

As you showed in your video I already have ctrl+shift+` for new terminal. But I see no way to create another shortcut which triggers when=terminalFocus. I don't want to edit the existing keybinding. Can you tell me how you added a new keybinding for ⌘+N and also have the ^+shift+` for the same action?

Ответить
Michael Chen
Michael Chen - 17.05.2023 20:14

Have you seen those projects that have an index in every folder? :P

Ответить
Martijn Heiden
Martijn Heiden - 16.05.2023 21:19

I disagree a bit.
I think the file tree in vscode is good. But whats bad is using the mouse..
In my project setup most files for a feature are in the same folder. So the search would be way more work then just getting the next file up in the file explorer.
Just use shortcuts. Thats what boost productivity dont use the mouse or atleast as least as possible

Ответить
Amodeus R.
Amodeus R. - 16.05.2023 00:45

How is called the shortcut option to tab through the terminals? I couldn't find it by myself.

Ответить
Kiki's Bytes
Kiki's Bytes - 15.05.2023 04:17

I should send this to my coworkers :P

Ответить
Stanko Opacic
Stanko Opacic - 14.05.2023 11:29

Just a matter of preference. For me, one of better things is that file explorer is there and it's enabled.

Ответить
Steve Little
Steve Little - 14.05.2023 03:35

This is really useful. Thanks 😀

Ответить
Ioannis Theodoridis
Ioannis Theodoridis - 13.05.2023 16:20

Sorry to burst your bubble but you are actually missing out on features if you only open the files one by one. For some reason, marking problems inside the code doesn't work if you don't open the folder in vscode.
You can hide the file explorer with one click. I never have any of the problems you are describing

Ответить
Ali Amin
Ali Amin - 13.05.2023 10:56

isn't the more "chad" way to just do all of this in the terminal?

Ответить
Andre H.
Andre H. - 13.05.2023 07:26

Thanks for the recommendations! The default new file command was super annoying.

Ответить
joe hicks
joe hicks - 12.05.2023 21:55

seems like needing to know/use a lot more stuff just so you can not use the file explorer to recapture the screen space....to avoid hide/unhide file explorer. Its ok to use your mouse sometimes.

Ответить
Henrik Stanley Mortensen
Henrik Stanley Mortensen - 12.05.2023 13:02

A tiny shell tip. Instead of typing out "clear" you can simply use the shortcut ctrl + lower case L while you are in the terminal. This does the same but does not require you to type out the entire thing :)

Ответить
Neka The Dev
Neka The Dev - 12.05.2023 01:42

Thank you, this was very useful for me!

Ответить
Shell Bryson
Shell Bryson - 11.05.2023 23:52

Great video. I’m on Mac. I mapped a double-tap of the left shift key to bring up the command palette as (for me) it’s a less awkward key combination. Does require the macOS BetterTap app as it allows you to have application specific key combinations with delays (so left shift, and if a second press within 300ms, send Command P if VSCode has focus). Small things, huge time saver!

Ответить
Vinicius Franco
Vinicius Franco - 11.05.2023 23:49

Thanks for sharing

Ответить
Gema
Gema - 11.05.2023 19:25

Put it on the right side, you will never lose a space

Ответить
pictzone
pictzone - 11.05.2023 17:11

Another great tip is to change the file tree indentation. There's a setting for it. Trust me, larger indentation will help you avoid getting lost in sub-folders and always know how deep is your file in the overall structure.

Ответить
Guilherme Martins
Guilherme Martins - 11.05.2023 15:37

what vscode theme you are currently using please?

Ответить
Never Code Alone
Never Code Alone - 11.05.2023 09:34

Very nice inspiration. I switch totally to Vim and use the FZF file finder ;)

Ответить
David Johnston
David Johnston - 11.05.2023 00:50

cmd-p and ctrl-p are for bringing up the print dialog. Using it for file search is evil.

Ответить
Squ34ky
Squ34ky - 10.05.2023 22:50

Pat Benatar gave up the rock-n-roll lifestyle to create VSCode extensions?

Ответить
mickmister
mickmister - 10.05.2023 21:31

I like the piece about key bindings. I'm curious what settings, key bindings, and extensions you use throughout your setup. Thoughts on doing a deep dive or summary of this?

Edit: Sounds like the cheatsheet you mentioned at the end. I submitted this just as I got to that part of the video haha

Ответить
mickmister
mickmister - 10.05.2023 21:29

What about browsing files? "I dont know where that one file is, or what its named, but I'll see it once I browse around the project." Or any variation of that scenario where you don't have enough context to use fuzzy find to search for your file.

Ответить
snatvb
snatvb - 10.05.2023 18:17

file utils able to create new file too :)

Ответить
Colton A
Colton A - 10.05.2023 18:01

Thanks. But I use what I want.

Ответить
Justin Giovanetti
Justin Giovanetti - 10.05.2023 17:34

You need context. The shortcut idea only works when the workspace has unique names across all projects. And when it doesn’t, the fact that you’re seeing the path in the command window, is the exact same thing as using the explorer. There’s nothing gained here.

Ответить
Mulperi Music & Synth Demos
Mulperi Music & Synth Demos - 10.05.2023 16:22

Ctrl + B

Ответить
Oszi
Oszi - 10.05.2023 16:10

I find it really usefull for navigating an vps

Ответить
Smith
Smith - 10.05.2023 16:07

I have all the extensions and all the shortcuts you mentioned. But still I need file explorer time to time because it's easy to get lost in large projects. I usually keep the file explorer in hiding by pressing "Ctrl + B". With the same command, I can bring out the file explorer.

Ответить
App User
App User - 10.05.2023 14:48

I've been trying to use Ctrl+P go to file for so long, but old habits die hard. I'll probably just keep using the file explorer forever :)

Ответить
Neelesh Kumar
Neelesh Kumar - 10.05.2023 13:52

Overly complicating a simple thing

Ответить
Bulent Gercek
Bulent Gercek - 10.05.2023 12:42

The biggest problem with assertive "don't use this" clickbait titles is that their suggestions as a solution inject tons of unnecessary information by saying "download this", "upload this". I respect the information, but saying don't use file explorer is purely personal preference.

Ответить
Hendry Khoza
Hendry Khoza - 10.05.2023 11:21

come to VIM

Ответить
John Mcclane
John Mcclane - 10.05.2023 11:03

Nah, I use my time clicking around the file explorer as a break

Ответить
Abraham OLAGUNJU
Abraham OLAGUNJU - 10.05.2023 09:17

🙂... I think imma stick with the default File Explorer.

Ответить
Krish Jaiswal
Krish Jaiswal - 10.05.2023 01:59

This is awesome James! Loves the video. I was curious as to which font style and size do you use in VS Code?

Ответить
Shu
Shu - 10.05.2023 01:11

James that shirt is a baggy on you have you been losing weight

Ответить
מיכאל טורגוביצקי
מיכאל טורגוביצקי - 10.05.2023 00:22

crazy useful... TNX

Ответить
metamodern
metamodern - 10.05.2023 00:02

Dude you need to have a good sleep or smth:)

Ответить
Michal Nowak
Michal Nowak - 09.05.2023 22:28

thx

Ответить
Anthony Powell
Anthony Powell - 09.05.2023 19:31

In large projects it can take vocode longer to filter files where your waiting a bit after you enter the file name for it to appear int the command pallet but generally true I have all these extensions and I love my workflow great tips!

Ответить