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.
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}
@@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.
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.
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 .
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 😊
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.
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 🥲
VSC team you guys always have the best content on the ready
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
"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'
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
Thanks man, found at the perfect time!!
wow thats actually pretty nice ^^
This man has recently been improving my life short by short 🙌 👏
As someone who makes files inside the terminal I see this as an absolute win
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}`
I knew this from the fact that every file is represented by the path which includes folders. So this makes sense.
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.
Awesome.
I'm loving vs code!
Or you could use the terminal, keep your hands on the keyboard and save even more time.
_mkdir -p_ go brrr
These are super cool little tutorials, i wouldn't have known otherwise
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
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
Terminal baby. Terminal is life. That is the fastest and best way. None of that mouse clicking.
Good job 👍
'../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👍👍
saved so much time with this method that I'll easily be able to log off of work a couple hours early 🙌
I like how they make this tutorial multiple times with multiple different people
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
You can make keyboard shorcut for folder/file and to be even faster ;)
Thank you very much
I was so excited when I figured it out the first time
Didn't even realize those button exist. I mostly just right-click io add folder/files.
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.
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 .
Double click into the explorer also works in the parent folder.
Thanx bro ❤
All those vs code shorts when fleet just came out...
Thank you ❤
nice! i also like just importing files that dont exist and tricking vsc into making them
Love it!
already knew it but still cool
Hi there, which screen recorder software are you using ?
Ctrl + Alt + T + mkdir folder + touch path_to/file , it's quicker and becomes natural with tome
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 just run my pre-built bash script every time.
This way seems interesting, might give it a try.
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
Ctrl N ctrl S. Job done.
Thank you
Linux permits creating multiple directories and subdirectories with a single line of code.
I take it a step further and create the directory in a one line terminal command.
"saved alot of time"
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.
oh and the fastest way of getting silly is to watch those shorts
Adorable
Im starting to wonder if VS code is made for Apple
I create my files and folders on terminal before running it through vscode
I miss pressing A and Shift-A in Atom file sidebar to create files and folders
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?
Did multiple folders fail?
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.
hate that folder view, want to see under aligned and not dotted lines
Why did my code said “permission denied” on the terminal?
Nice
Wait people don't know about that? ...thats how we create folders in 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)
Is there a hotkey that I can create a file into a direct folder instead using my mouse 😅
Yes! Look in the Command Palette (Ctrl/Cmd + Shift + P)
Or just use the built in shell
Unfortunately i can't read .tflite file from vs code. I need to read input and output information of .tflite file
Get the file utils extension instead.
That is cool
Wow i saved my lots of time 😲🤣
Nice!
I prefer hyphen instead of underscore
You mean, instead of using the touch command?
What's the theme you use bro
I do have a weird question . why do we use files in coding , I am a noob
Easier to use the terminal
i don't quite get how this thing works
Does it work in Visual Studio ?
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.
I don't have a run button
How do I fix this??
or maybe just create a script that'll make everything for you
i hate auto complete when i pratice i want to turn off in javascript please help
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
I don't like my folders jumbled up🤣🤣
This is definitely fastest video that make no sense .
"Save a lot of time"
Can i share the project or files with friend ??
Vim plugin and a few settings to act as an Explorer like in neovim...and bum - just press one key and create it. Don't use that mouse!
Who can tell me what kind of folder it is .vscode and what does it do?
Right click + create file
GOD
In Linux we just use mkdir and touch 😇
Neat
Right click faster than this
thats at least 0s faster
just like github.
Saves a lot of time hhhhhhhhhhh xD
Just run npm run generate and it will automatically ask your name of your folder and create a file for you
nahh..i would rather do it the normal way
Use Vim 👍
wow
You look like habesha. Are you?
Or you could leave your mouse alone and use the keyboard. Especially with neovim extension it's just one keystroke 😄
Большое спасибо!
🇷🇺❤️
why the hell translator changes the flag into Uk flag when i translate your comment.
@@degenyakuza because it's better
Russia is criminal country
🇺🇦