Folders & files in VS Code made super fast like this!

Sdílet
Vložit
  • čas přidán 29. 08. 2024
  • #shorts

Komentáře • 156

  • @ArrowOfTruth01
    @ArrowOfTruth01 Před rokem +330

    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

    • @abso1utezer010
      @abso1utezer010 Před rokem +43

      I totally forgot Windows uses backslashes, I’ve always used forward slashes when navigating Explorer or programming so I think it supports both

    • @IllllIIllllI
      @IllllIIllllI Před rokem +9

      I don't know any program that only accepts backwards slashes tbh

    • @ArrowOfTruth01
      @ArrowOfTruth01 Před rokem +3

      @@IllllIIllllI PowerShell and command prompt to name a few

    • @IllllIIllllI
      @IllllIIllllI Před rokem +28

      @@ArrowOfTruth01 both PowerShell and cmd.exe accept forwards slashes as path separators

    • @gilsonoliveira1887
      @gilsonoliveira1887 Před rokem +1

      4 real man, this is important 🥲

  • @Gbtx6
    @Gbtx6 Před rokem +4

    VSC team you guys always have the best content on the ready

  • @akamaru1822
    @akamaru1822 Před rokem +83

    Skip the click and add a shortcut to create files and folders. Files -> Preferences -> Keyboard Shortcuts -> File: New Folder / File

    • @harelchen
      @harelchen Před rokem +9

      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)

    • @Nicosfrs
      @Nicosfrs Před rokem +1

      Thanks, I was looking for this!

    • @chickukoshti3741
      @chickukoshti3741 Před rokem +1

      not working
      ctrl+e giving me search bar lol

    • @itzvoko1
      @itzvoko1 Před rokem

      @@harelchen
      You can use already built-in CTRL+0 shortcut to go to the sidebar.

    • @yohanpablos6861
      @yohanpablos6861 Před 11 měsíci

      ​@@chickukoshti3741go into shortcuts and unbind search from ctrl+e

  • @subhrojeetdutta5170
    @subhrojeetdutta5170 Před rokem +12

    "Mkdir" And "Code" are still my Go-to when creating them

    • @farhanaditya2647
      @farhanaditya2647 Před rokem +3

      you'd have to cd multiple times if you want to create deep folders.

    • @felleg4737
      @felleg4737 Před rokem

      @@farhanaditya2647 I think you can do ‘code folder-a/folder-b/file-a.extension’, then just save it. iirc

    • @heroe1486
      @heroe1486 Před rokem

      @@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"

    • @catgirlQueer
      @catgirlQueer Před rokem

      @@farhanaditya2647 kid named mkdir -p

    • @cantis
      @cantis Před měsícem

      In PowerShell it's just 'ni filename'

  • @mufty9006
    @mufty9006 Před rokem +41

    I love how he spoke slowly to illustrate how slow the slower method is 😂😅😂😂

    • @pronoy592
      @pronoy592 Před rokem +1

      True that... don't know how many noticed that.🤣🤣

    • @abhilashpatel6852
      @abhilashpatel6852 Před 6 měsíci

      the proclaimed faster method is actually slowest one when you are a java dev and real file is inside 10 folders deep

  • @reshmachowdary5883
    @reshmachowdary5883 Před 6 měsíci

    Thanks man, found at the perfect time!!

  • @forestcat512
    @forestcat512 Před rokem +1

    wow thats actually pretty nice ^^

  • @jamaka_me_code796
    @jamaka_me_code796 Před rokem +2

    This man has recently been improving my life short by short 🙌 👏

  • @dopecello8670
    @dopecello8670 Před rokem +2

    As someone who makes files inside the terminal I see this as an absolute win

  • @walidamozon5258
    @walidamozon5258 Před rokem +34

    Man we have something called terminal

    • @puspamadak
      @puspamadak Před rokem

      😎

    • @JaFupy
      @JaFupy Před rokem

      For some reason I prefer GUI based

    • @quokka_yt
      @quokka_yt Před 9 měsíci

      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}`

  • @puspamadak
    @puspamadak Před rokem

    I knew this from the fact that every file is represented by the path which includes folders. So this makes sense.

  • @StrikerFeed
    @StrikerFeed Před rokem +1

    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.

  • @designrevolutionsent
    @designrevolutionsent Před rokem

    Awesome.
    I'm loving vs code!

  • @karakondzula4216
    @karakondzula4216 Před rokem +3

    Or you could use the terminal, keep your hands on the keyboard and save even more time.

  • @bandanaboii3136
    @bandanaboii3136 Před rokem

    These are super cool little tutorials, i wouldn't have known otherwise

  • @ZacharyPrice
    @ZacharyPrice Před rokem +1

    This is great! Out of curiosity can you create multiple folders within a single folder (i.e. assets/css, assets/js, assets/imgs, etc.)?

    • @puspamadak
      @puspamadak Před rokem +1

      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}

    • @uchennacodes
      @uchennacodes Před rokem

      ​@@puspamadak just knowing this now

  • @projectverna1937
    @projectverna1937 Před rokem +68

    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:

    • @tomshieff
      @tomshieff Před rokem +11

      When the thing at home is better than the thing you ask for 💀

    • @projectverna1937
      @projectverna1937 Před rokem +2

      @@tomshieff Great point: I really love VS Code at use it more than VS now. However, that shortcut is one that I really miss

    • @tomshieff
      @tomshieff Před rokem +2

      @@projectverna1937 yeah I feel you, you can change the shortcut to use 'ctrl + shift + a' very easily tho

    • @angeloclauin4081
      @angeloclauin4081 Před rokem

      CTRL+n > CTRL+s

  • @MamaMia84oo7
    @MamaMia84oo7 Před rokem

    Terminal baby. Terminal is life. That is the fastest and best way. None of that mouse clicking.

  • @gouravnainwaya5669
    @gouravnainwaya5669 Před rokem +1

    Good job 👍

  • @kadensharpin2156
    @kadensharpin2156 Před rokem +21

    '../folder/file' should also be supported

    • @santoshpattnaik6524
      @santoshpattnaik6524 Před rokem

      this method is reserved for folders for representation only🙂

    • @miguelguthridge
      @miguelguthridge Před rokem

      @@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.

    • @santoshpattnaik6524
      @santoshpattnaik6524 Před rokem

      @@miguelguthridge ya ya right, this should be an advantage👍👍

  • @bigs2469
    @bigs2469 Před rokem

    saved so much time with this method that I'll easily be able to log off of work a couple hours early 🙌

  • @DPSM914
    @DPSM914 Před 11 měsíci

    I like how they make this tutorial multiple times with multiple different people

  • @aleneri97
    @aleneri97 Před rokem +1

    Would be great to be able to create more than 1 file at a time with this feature like “folder/file1.html + file2.css”

    • @anindow
      @anindow Před rokem

      i actually searching for that :(
      want to do that :/ let me know if there any way

  • @nemanjaapopovic
    @nemanjaapopovic Před rokem

    You can make keyboard shorcut for folder/file and to be even faster ;)

  • @kavaskar685
    @kavaskar685 Před rokem

    Thank you very much

  • @elyasdemeke23
    @elyasdemeke23 Před rokem

    I was so excited when I figured it out the first time

  • @Vianou-vm2zv
    @Vianou-vm2zv Před rokem

    Didn't even realize those button exist. I mostly just right-click io add folder/files.

  • @emjizone
    @emjizone Před rokem

    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.

  • @cockroach-spray4685
    @cockroach-spray4685 Před 3 měsíci +1

    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 .

  • @ambuj.k
    @ambuj.k Před rokem

    Double click into the explorer also works in the parent folder.

  • @EXPERIMENTSHOW.
    @EXPERIMENTSHOW. Před 3 měsíci

    Thanx bro ❤

  • @frvi3502
    @frvi3502 Před rokem

    All those vs code shorts when fleet just came out...

  • @tauhidxahmed
    @tauhidxahmed Před rokem

    Thank you ❤

  • @christopher6267
    @christopher6267 Před rokem

    nice! i also like just importing files that dont exist and tricking vsc into making them

  • @fred4287
    @fred4287 Před rokem

    Love it!

  • @awli8861
    @awli8861 Před rokem

    already knew it but still cool

  • @diwaspoudel7
    @diwaspoudel7 Před rokem

    Hi there, which screen recorder software are you using ?

  • @heroe1486
    @heroe1486 Před rokem

    Ctrl + Alt + T + mkdir folder + touch path_to/file , it's quicker and becomes natural with tome

  • @mohammedissam3651
    @mohammedissam3651 Před rokem +1

    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 😊

  • @geniusdavid
    @geniusdavid Před rokem

    I just run my pre-built bash script every time.
    This way seems interesting, might give it a try.

  • @HarsH_1718
    @HarsH_1718 Před 11 měsíci +1

    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

  • @physicsmadesimple332
    @physicsmadesimple332 Před 2 měsíci

    Ctrl N ctrl S. Job done.

  • @josephlivengood4508
    @josephlivengood4508 Před rokem

    Thank you

  • @cbbcbb6803
    @cbbcbb6803 Před 2 měsíci

    Linux permits creating multiple directories and subdirectories with a single line of code.

  • @PATRICIOcomplex
    @PATRICIOcomplex Před rokem

    I take it a step further and create the directory in a one line terminal command.

  • @ahmedikawika2204
    @ahmedikawika2204 Před rokem +13

    "saved alot of time"

  • @hasansiddiki7162
    @hasansiddiki7162 Před rokem

    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.

  • @tomdeu79
    @tomdeu79 Před rokem

    oh and the fastest way of getting silly is to watch those shorts

  • @zaheerbeg4810
    @zaheerbeg4810 Před rokem +1

    Adorable

  • @branchyapple
    @branchyapple Před rokem

    Im starting to wonder if VS code is made for Apple

  • @JOJO-jp6js
    @JOJO-jp6js Před rokem

    I create my files and folders on terminal before running it through vscode

  • @dazonic
    @dazonic Před rokem

    I miss pressing A and Shift-A in Atom file sidebar to create files and folders

  • @MCRuCr
    @MCRuCr Před rokem

    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?

  • @blezzyzx
    @blezzyzx Před rokem +1

    Did multiple folders fail?

  • @alwaysgaveyouup1348
    @alwaysgaveyouup1348 Před rokem +1

    ahem ahem "touch filename"

    • @justanaveragebalkan
      @justanaveragebalkan Před rokem +1

      Don't let out the secret to the Windows cultist, they must click with the mouse like the smart people they are.

  • @AIEntusiast_
    @AIEntusiast_ Před 7 měsíci

    hate that folder view, want to see under aligned and not dotted lines

  • @elyas2awesome900
    @elyas2awesome900 Před 9 měsíci

    Why did my code said “permission denied” on the terminal?

  • @sarapaul9201
    @sarapaul9201 Před rokem

    Nice

  • @joydeepbhowmik6181
    @joydeepbhowmik6181 Před rokem

    Wait people don't know about that? ...thats how we create folders in github

  • @narutokunn
    @narutokunn Před rokem

    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)

  • @phamngocangkhoa1394
    @phamngocangkhoa1394 Před 9 dny

    Is there a hotkey that I can create a file into a direct folder instead using my mouse 😅

    • @code
      @code  Před 8 dny

      Yes! Look in the Command Palette (Ctrl/Cmd + Shift + P)

  • @davidvernon3119
    @davidvernon3119 Před rokem +4

    Or just use the built in shell

  • @enes6223
    @enes6223 Před 8 měsíci

    Unfortunately i can't read .tflite file from vs code. I need to read input and output information of .tflite file

  • @zebapy
    @zebapy Před rokem

    Get the file utils extension instead.

  • @ubayabdelgadir4165
    @ubayabdelgadir4165 Před rokem

    That is cool

  • @karuneshgupta8297
    @karuneshgupta8297 Před rokem

    Wow i saved my lots of time 😲🤣

  • @jareda8943
    @jareda8943 Před rokem

    Nice!

  • @CompuB1t
    @CompuB1t Před rokem

    I prefer hyphen instead of underscore

  • @JetJockey87
    @JetJockey87 Před rokem

    You mean, instead of using the touch command?

  • @studyaccount2442
    @studyaccount2442 Před rokem

    What's the theme you use bro

  • @Lueglam
    @Lueglam Před rokem

    I do have a weird question . why do we use files in coding , I am a noob

  • @netstormuk
    @netstormuk Před měsícem

    Easier to use the terminal

  • @ashlynx-n9t
    @ashlynx-n9t Před měsícem

    i don't quite get how this thing works

  • @CuddlyOrpheus00
    @CuddlyOrpheus00 Před rokem

    Does it work in Visual Studio ?

  • @matthewkeenan3003
    @matthewkeenan3003 Před rokem +1

    I like how it didn’t even make 2 folders lmao

    • @YamiSuzume
      @YamiSuzume Před rokem +1

      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.

  • @ghostxd7257
    @ghostxd7257 Před rokem

    I don't have a run button
    How do I fix this??

  • @RIP123
    @RIP123 Před rokem

    or maybe just create a script that'll make everything for you

  • @a99986
    @a99986 Před rokem

    i hate auto complete when i pratice i want to turn off in javascript please help

  • @cse090priyanshmishra6

    damn, but what i do is just type touch file.js in my terminal...fast as fu* boii

    • @heroe1486
      @heroe1486 Před rokem

      And that's the way since not depended on a specific tool, just your shell, and faster

  • @codingprograms2078
    @codingprograms2078 Před rokem

    I don't like my folders jumbled up🤣🤣

  • @ferozahmmed7401
    @ferozahmmed7401 Před 9 měsíci

    This is definitely fastest video that make no sense .

  • @ImTheDot
    @ImTheDot Před rokem

    "Save a lot of time"

  • @user-Xshin0
    @user-Xshin0 Před rokem

    Can i share the project or files with friend ??

  • @horiagunica7634
    @horiagunica7634 Před 28 dny

    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!

  • @ob7349
    @ob7349 Před rokem

    Who can tell me what kind of folder it is .vscode and what does it do?

  • @eliastouil7686
    @eliastouil7686 Před rokem

    Right click + create file

  • @matheus-il
    @matheus-il Před rokem

    GOD

  • @FS-yq9ef
    @FS-yq9ef Před rokem

    In Linux we just use mkdir and touch 😇

  • @outrotoon
    @outrotoon Před rokem

    Neat

  • @sh8yt
    @sh8yt Před 11 měsíci

    Right click faster than this

  • @quaffie
    @quaffie Před rokem

    thats at least 0s faster

  • @anikets4699
    @anikets4699 Před rokem

    just like github.

  • @deeplearning934
    @deeplearning934 Před rokem

    Saves a lot of time hhhhhhhhhhh xD

  • @ThannMalin
    @ThannMalin Před rokem

    Just run npm run generate and it will automatically ask your name of your folder and create a file for you

  • @haikelareff
    @haikelareff Před měsícem

    nahh..i would rather do it the normal way

  • @Nahkest
    @Nahkest Před rokem

    Use Vim 👍

  • @MarioDev
    @MarioDev Před rokem

    wow

  • @natywubet2175
    @natywubet2175 Před rokem

    You look like habesha. Are you?

  • @mikemegalodon2114
    @mikemegalodon2114 Před rokem

    Or you could leave your mouse alone and use the keyboard. Especially with neovim extension it's just one keystroke 😄

  • @technic_and_programming
    @technic_and_programming Před rokem +3

    Большое спасибо!
    🇷🇺❤️

    • @degenyakuza
      @degenyakuza Před rokem

      why the hell translator changes the flag into Uk flag when i translate your comment.

    • @logarithm0
      @logarithm0 Před rokem

      @@degenyakuza because it's better
      Russia is criminal country
      🇺🇦