I like how the tutorial from Microsoft is using the Unix slashes for folder paths and not windows ;) Nothing wrong with it, happy to see both supported
I just try to use my keyboard as much as possible. It's faster to ctrl + e (change focus to sidebar) -> ctrl+shift+N (new folder) -> ctrl + n (new file)
@@farhanaditya2647 How many times do you create multiple folders at a time tho ? Or are you saying cd deep into an existing folder ? Just use something like Zoxide and instead of "cd foo/bar/hello/world" you would just "z world"
I literally can create an entire directory tree in a one liner `mkdir -p new-project/{scripts,styles/{css/min,sass},assets/{media,components}}` And create the files with a one liner too `touch new-project/{index.html,scripts/main.js,styles/{css/{main.css,min/main.min.css},sass/{main.scss,_variables.scss}},assets/components/header.html}`
much faster way that isn't native in vscode for some reason - using extension "advanced new file". It's much more convenient and faster, without clicking, only keyboard. I've replaced default cmd+N with shortcut from this extension.
@@santoshpattnaik6524 yes but if you accidentally trigger the create file option in the wrong place it's useful to be able to correct it from the keyboard.
Don't know about VS code, but if you use bash shell, it have an expansion syntax which allows you to group strings. So, you can do this for your use case: mkdir -p assets/{css,js,imgs}
Using command prompt is the fastest and best. U don’t even need to have vs code open. U can great directory’s and sub directories and files. Mkdir folder_name Touch file_name.ext Code .
Hey guys I'm in real trouble. My VS code does not show any squiggles lines. I tried resetting my windows and reinstalling VS code but it didn't work. Please help me.
No. *Forget any clicking in the file explorer.* You can create files and folders, open, close and navigate them all *from the keyboard only* , without any display of the file explorer in zen mode. What you show here is still vey slow.
Ok, how to create a file inside already created folder? This method will create many folders with the same name plus (number)copy at the end I think it’s good if used well coz it make things later on more complicated Edited Forget what I said above 😅 it’s really good and working fine no new copy of the folder coz it work like file pathing but it generates new folders if that folder not exists with the file It works only when you adding file not folder they should remove add new folder Very cool thanks 😊
Did you know they recently invented a console command to create folders and files? It lets you automate that process... but why would a programmer do that?
I like this one but the best one I find is with terminal. Just `code folder1/folder2/myFile.json` not only creates the dirs and file but also opens it without any extra step. That's why I find it even more convenient than `touch` (inside vscode's terminal)
I like how the tutorial from Microsoft is using the Unix slashes for folder paths and not windows ;) Nothing wrong with it, happy to see both supported
I totally forgot Windows uses backslashes, I’ve always used forward slashes when navigating Explorer or programming so I think it supports both
I don't know any program that only accepts backwards slashes tbh
@@IllllIIllllI PowerShell and command prompt to name a few
@@ArrowOfTruth01 both PowerShell and cmd.exe accept forwards slashes as path separators
4 real man, this is important 🥲
Skip the click and add a shortcut to create files and folders. Files -> Preferences -> Keyboard Shortcuts -> File: New Folder / File
I just try to use my keyboard as much as possible. It's faster to ctrl + e (change focus to sidebar) -> ctrl+shift+N (new folder) -> ctrl + n (new file)
Thanks, I was looking for this!
not working
ctrl+e giving me search bar lol
@@harelchen
You can use already built-in CTRL+0 shortcut to go to the sidebar.
@@chickukoshti3741go into shortcuts and unbind search from ctrl+e
I love how he spoke slowly to illustrate how slow the slower method is 😂😅😂😂
True that... don't know how many noticed that.🤣🤣
the proclaimed faster method is actually slowest one when you are a java dev and real file is inside 10 folders deep
"Mkdir" And "Code" are still my Go-to when creating them
you'd have to cd multiple times if you want to create deep folders.
@@farhanaditya2647 I think you can do ‘code folder-a/folder-b/file-a.extension’, then just save it. iirc
@@farhanaditya2647 How many times do you create multiple folders at a time tho ? Or are you saying cd deep into an existing folder ? Just use something like Zoxide and instead of "cd foo/bar/hello/world" you would just "z world"
@@farhanaditya2647 kid named mkdir -p
In PowerShell it's just 'ni filename'
VSC team you guys always have the best content on the ready
Thanks man, found at the perfect time!!
This man has recently been improving my life short by short 🙌 👏
Man we have something called terminal
😎
For some reason I prefer GUI based
I literally can create an entire directory tree in a one liner
`mkdir -p new-project/{scripts,styles/{css/min,sass},assets/{media,components}}`
And create the files with a one liner too
`touch new-project/{index.html,scripts/main.js,styles/{css/{main.css,min/main.min.css},sass/{main.scss,_variables.scss}},assets/components/header.html}`
wow thats actually pretty nice ^^
Awesome.
I'm loving vs code!
As someone who makes files inside the terminal I see this as an absolute win
I knew this from the fact that every file is represented by the path which includes folders. So this makes sense.
I like how they make this tutorial multiple times with multiple different people
These are super cool little tutorials, i wouldn't have known otherwise
All those vs code shorts when fleet just came out...
Good job 👍
saved so much time with this method that I'll easily be able to log off of work a couple hours early 🙌
You can make keyboard shorcut for folder/file and to be even faster ;)
I was so excited when I figured it out the first time
much faster way that isn't native in vscode for some reason - using extension "advanced new file". It's much more convenient and faster, without clicking, only keyboard. I've replaced default cmd+N with shortcut from this extension.
Didn't even realize those button exist. I mostly just right-click io add folder/files.
Me: "Mom, can we have 'CTRL + SHIFT + A' to add new files like from Visual Studio?"
Mom: "We have adding new files at home"
Adding new files at home:
When the thing at home is better than the thing you ask for 💀
@@tomshieff Great point: I really love VS Code at use it more than VS now. However, that shortcut is one that I really miss
@@projectverna1937 yeah I feel you, you can change the shortcut to use 'ctrl + shift + a' very easily tho
CTRL+n > CTRL+s
'../folder/file' should also be supported
this method is reserved for folders for representation only🙂
@@santoshpattnaik6524 yes but if you accidentally trigger the create file option in the wrong place it's useful to be able to correct it from the keyboard.
@@miguelguthridge ya ya right, this should be an advantage👍👍
Or you could use the terminal, keep your hands on the keyboard and save even more time.
_mkdir -p_ go brrr
Thank you very much
Love it!
nice! i also like just importing files that dont exist and tricking vsc into making them
Nice
Thank you ❤
already knew it but still cool
Thanx bro ❤
Terminal baby. Terminal is life. That is the fastest and best way. None of that mouse clicking.
Ctrl N ctrl S. Job done.
Would be great to be able to create more than 1 file at a time with this feature like “folder/file1.html + file2.css”
i actually searching for that :(
want to do that :/ let me know if there any way
I just run my pre-built bash script every time.
This way seems interesting, might give it a try.
Double click into the explorer also works in the parent folder.
oh and the fastest way of getting silly is to watch those shorts
Adorable
Nice!
Thank you
This is great! Out of curiosity can you create multiple folders within a single folder (i.e. assets/css, assets/js, assets/imgs, etc.)?
Don't know about VS code, but if you use bash shell, it have an expansion syntax which allows you to group strings. So, you can do this for your use case:
mkdir -p assets/{css,js,imgs}
@@puspamadak just knowing this now
That is cool
Wow i saved my lots of time 😲🤣
Neat
Ctrl + Alt + T + mkdir folder + touch path_to/file , it's quicker and becomes natural with tome
ahem ahem "touch filename"
Don't let out the secret to the Windows cultist, they must click with the mouse like the smart people they are.
I miss pressing A and Shift-A in Atom file sidebar to create files and folders
I take it a step further and create the directory in a one line terminal command.
I create my files and folders on terminal before running it through vscode
"saved alot of time"
"Save a lot of time"
GOD
Using command prompt is the fastest and best. U don’t even need to have vs code open. U can great directory’s and sub directories and files.
Mkdir folder_name
Touch file_name.ext
Code .
Hi there, which screen recorder software are you using ?
Hey guys I'm in real trouble. My VS code does not show any squiggles lines. I tried resetting my windows and reinstalling VS code but it didn't work. Please help me.
Guys whenever I create a new folder2 within folder1, it shows it as 'folder1/folder2'. But I want folder2 to be in the dropdown list. Someone plz help
Get the file utils extension instead.
I don't like my folders jumbled up🤣🤣
Im starting to wonder if VS code is made for Apple
No. *Forget any clicking in the file explorer.*
You can create files and folders, open, close and navigate them all *from the keyboard only* , without any display of the file explorer in zen mode.
What you show here is still vey slow.
Why did my code said “permission denied” on the terminal?
Ok, how to create a file inside already created folder?
This method will create many folders with the same name plus (number)copy at the end
I think it’s good if used well coz it make things later on more complicated
Edited
Forget what I said above 😅
it’s really good and working fine no new copy of the folder coz it work like file pathing but it generates new folders if that folder not exists with the file
It works only when you adding file not folder they should remove add new folder
Very cool thanks 😊
I prefer hyphen instead of underscore
wow
Right click + create file
Did multiple folders fail?
Unfortunately i can't read .tflite file from vs code. I need to read input and output information of .tflite file
What's the theme you use bro
Does it work in Visual Studio ?
Saves a lot of time hhhhhhhhhhh xD
You mean, instead of using the touch command?
Wow
I don't have a run button
How do I fix this??
i don't quite get how this thing works
damn, but what i do is just type touch file.js in my terminal...fast as fu* boii
And that's the way since not depended on a specific tool, just your shell, and faster
Can i share the project or files with friend ??
Easier to use the terminal
In Linux we just use mkdir and touch 😇
i hate auto complete when i pratice i want to turn off in javascript please help
Or just use the built in shell
Linux permits creating multiple directories and subdirectories with a single line of code.
Who can tell me what kind of folder it is .vscode and what does it do?
Did you know they recently invented a console command to create folders and files? It lets you automate that process... but why would a programmer do that?
I do have a weird question . why do we use files in coding , I am a noob
Right click faster than this
This is definitely fastest video that make no sense .
Use Vim 👍
I like how it didn’t even make 2 folders lmao
It did. If a folder only contains another folder, visual studio only displays the name with the slash. You can also see it at the bottom of the clip.
Большое спасибо!
🇷🇺❤️
why the hell translator changes the flag into Uk flag when i translate your comment.
@@degenyakuza because it's better
Russia is criminal country
🇺🇦
just like github.
I like this one but the best one I find is with terminal. Just `code folder1/folder2/myFile.json` not only creates the dirs and file but also opens it without any extra step. That's why I find it even more convenient than `touch` (inside vscode's terminal)
Wait people don't know about that? ...thats how we create folders in github
hate that folder view, want to see under aligned and not dotted lines
thats at least 0s faster
or maybe just create a script that'll make everything for you
Just run npm run generate and it will automatically ask your name of your folder and create a file for you
Mkdir folder & touch file.ts …….
Or you could leave your mouse alone and use the keyboard. Especially with neovim extension it's just one keystroke 😄
You look like habesha. Are you?
Neovim do better than that😊