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

Поделиться
HTML-код
  • Опубликовано: 5 окт 2022
  • #shorts
  • НаукаНаука

Комментарии • 151

  • @ArrowOfTruth01
    @ArrowOfTruth01 Год назад +317

    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 Год назад +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 Год назад +9

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

    • @ArrowOfTruth01
      @ArrowOfTruth01 Год назад +3

      @@IllllIIllllI PowerShell and command prompt to name a few

    • @IllllIIllllI
      @IllllIIllllI Год назад +28

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

    • @gilsonoliveira1887
      @gilsonoliveira1887 Год назад +1

      4 real man, this is important 🥲

  • @akamaru1822
    @akamaru1822 Год назад +78

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

    • @harelchen
      @harelchen Год назад +8

      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 Год назад +1

      Thanks, I was looking for this!

    • @chickukoshti3741
      @chickukoshti3741 Год назад +1

      not working
      ctrl+e giving me search bar lol

    • @itzvoko1
      @itzvoko1 Год назад

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

    • @yohanpablos6861
      @yohanpablos6861 9 месяцев назад

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

  • @mufty9006
    @mufty9006 Год назад +37

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

    • @pronoy592
      @pronoy592 Год назад +1

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

    • @abhilashpatel6852
      @abhilashpatel6852 5 месяцев назад

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

  • @subhrojeetdutta5170
    @subhrojeetdutta5170 Год назад +10

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

    • @farhanaditya2647
      @farhanaditya2647 Год назад +3

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

    • @felleg4737
      @felleg4737 Год назад

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

    • @heroe1486
      @heroe1486 Год назад

      @@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 Год назад

      @@farhanaditya2647 kid named mkdir -p

    • @cantis
      @cantis 2 дня назад

      In PowerShell it's just 'ni filename'

  • @Gbtx6
    @Gbtx6 Год назад +1

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

  • @reshmachowdary5883
    @reshmachowdary5883 4 месяца назад

    Thanks man, found at the perfect time!!

  • @jamaka_me_code796
    @jamaka_me_code796 Год назад +2

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

  • @walidamozon5258
    @walidamozon5258 Год назад +33

    Man we have something called terminal

    • @puspamadak
      @puspamadak Год назад

      😎

    • @JaFupy
      @JaFupy Год назад

      For some reason I prefer GUI based

    • @quokka_yt
      @quokka_yt 8 месяцев назад

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

  • @forestcat512
    @forestcat512 Год назад +1

    wow thats actually pretty nice ^^

  • @designrevolutionsent
    @designrevolutionsent Год назад

    Awesome.
    I'm loving vs code!

  • @dopecello8670
    @dopecello8670 Год назад +1

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

  • @puspamadak
    @puspamadak Год назад

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

  • @DPSM914
    @DPSM914 9 месяцев назад

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

  • @bandanaboii3136
    @bandanaboii3136 Год назад

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

  • @frvi3502
    @frvi3502 Год назад

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

  • @gouravnainwaya5669
    @gouravnainwaya5669 Год назад +1

    Good job 👍

  • @bigs2469
    @bigs2469 Год назад

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

  • @nemanjaapopovic
    @nemanjaapopovic Год назад

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

  • @elyasdemeke23
    @elyasdemeke23 Год назад

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

  • @StrikerFeed
    @StrikerFeed Год назад +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.

  • @Vianou-vm2zv
    @Vianou-vm2zv 11 месяцев назад

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

  • @projectverna1937
    @projectverna1937 Год назад +67

    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 Год назад +11

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

    • @projectverna1937
      @projectverna1937 Год назад +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 Год назад +2

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

    • @angeloclauin4081
      @angeloclauin4081 Год назад

      CTRL+n > CTRL+s

  • @kadensharpin2156
    @kadensharpin2156 Год назад +20

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

    • @santoshpattnaik6524
      @santoshpattnaik6524 Год назад

      this method is reserved for folders for representation only🙂

    • @miguelguthridge
      @miguelguthridge Год назад

      @@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 Год назад

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

  • @karakondzula4216
    @karakondzula4216 Год назад +3

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

  • @kavaskar685
    @kavaskar685 Год назад

    Thank you very much

  • @fred4287
    @fred4287 Год назад

    Love it!

  • @christopher6267
    @christopher6267 Год назад

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

  • @sarapaul9201
    @sarapaul9201 Год назад

    Nice

  • @tauhidxahmed
    @tauhidxahmed Год назад

    Thank you ❤

  • @awli8861
    @awli8861 Год назад

    already knew it but still cool

  • @EXPERIMENTSHOW.
    @EXPERIMENTSHOW. Месяц назад

    Thanx bro ❤

  • @MamaMia84oo7
    @MamaMia84oo7 11 месяцев назад

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

  • @physicsmadesimple332
    @physicsmadesimple332 14 дней назад

    Ctrl N ctrl S. Job done.

  • @aleneri97
    @aleneri97 Год назад +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 Год назад

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

  • @geniusdavid
    @geniusdavid Год назад

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

  • @ambuj.k
    @ambuj.k Год назад

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

  • @tomdeu79
    @tomdeu79 Год назад

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

  • @zaheerbeg4810
    @zaheerbeg4810 Год назад +1

    Adorable

  • @jareda8943
    @jareda8943 Год назад

    Nice!

  • @josephlivengood4508
    @josephlivengood4508 Год назад

    Thank you

  • @ZacharyPrice
    @ZacharyPrice Год назад +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 Год назад +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 Год назад

      ​@@puspamadak just knowing this now

  • @ubayabdelgadir4165
    @ubayabdelgadir4165 Год назад

    That is cool

  • @karuneshgupta8297
    @karuneshgupta8297 Год назад

    Wow i saved my lots of time 😲🤣

  • @outrotoon
    @outrotoon Год назад

    Neat

  • @heroe1486
    @heroe1486 Год назад

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

  • @alwaysgaveyouup1348
    @alwaysgaveyouup1348 Год назад +1

    ahem ahem "touch filename"

    • @justanaveragebalkan
      @justanaveragebalkan Год назад +1

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

  • @dazonic
    @dazonic Год назад

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

  • @PATRICIOcomplex
    @PATRICIOcomplex Год назад

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

  • @JOJO-jp6js
    @JOJO-jp6js Год назад

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

  • @ahmedikawika2204
    @ahmedikawika2204 Год назад +13

    "saved alot of time"

  • @ImTheDot
    @ImTheDot Год назад

    "Save a lot of time"

  • @matheus-il
    @matheus-il 10 месяцев назад

    GOD

  • @cockroach-spray4685
    @cockroach-spray4685 Месяц назад +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 .

  • @diwaspoudel7
    @diwaspoudel7 Год назад

    Hi there, which screen recorder software are you using ?

  • @hasansiddiki7162
    @hasansiddiki7162 Год назад

    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.

  • @HarsH_1718
    @HarsH_1718 9 месяцев назад +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

  • @zebapy
    @zebapy Год назад

    Get the file utils extension instead.

  • @codingprograms2078
    @codingprograms2078 Год назад

    I don't like my folders jumbled up🤣🤣

  • @branchyapple
    @branchyapple Год назад

    Im starting to wonder if VS code is made for Apple

  • @emjizone
    @emjizone Год назад

    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.

  • @elyas2awesome900
    @elyas2awesome900 8 месяцев назад

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

  • @mohammedissam3651
    @mohammedissam3651 Год назад +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 😊

  • @CompuB1t
    @CompuB1t Год назад

    I prefer hyphen instead of underscore

  • @MarioDev
    @MarioDev Год назад

    wow

  • @eliastouil7686
    @eliastouil7686 Год назад

    Right click + create file

  • @blezzyzx
    @blezzyzx Год назад +1

    Did multiple folders fail?

  • @enes6223
    @enes6223 6 месяцев назад

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

  • @studyaccount2442
    @studyaccount2442 10 месяцев назад

    What's the theme you use bro

  • @CuddlyOrpheus00
    @CuddlyOrpheus00 Год назад

    Does it work in Visual Studio ?

  • @deeplearning934
    @deeplearning934 Год назад

    Saves a lot of time hhhhhhhhhhh xD

  • @JetJockey87
    @JetJockey87 Год назад

    You mean, instead of using the touch command?

  • @vupham7361
    @vupham7361 Год назад

    Wow

  • @ghostxd7257
    @ghostxd7257 11 месяцев назад

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

  • @ashlynx-n9t
    @ashlynx-n9t День назад

    i don't quite get how this thing works

  • @cse090priyanshmishra6
    @cse090priyanshmishra6 Год назад

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

    • @heroe1486
      @heroe1486 Год назад

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

  • @user-Xshin0
    @user-Xshin0 Год назад

    Can i share the project or files with friend ??

  • @netstormuk
    @netstormuk 11 дней назад

    Easier to use the terminal

  • @FS-yq9ef
    @FS-yq9ef Год назад

    In Linux we just use mkdir and touch 😇

  • @a99986
    @a99986 Год назад

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

  • @davidvernon3119
    @davidvernon3119 Год назад +4

    Or just use the built in shell

  • @cbbcbb6803
    @cbbcbb6803 Месяц назад

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

  • @ob7349
    @ob7349 11 месяцев назад

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

  • @MCRuCr
    @MCRuCr Год назад

    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?

  • @Lueglam
    @Lueglam Год назад

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

  • @sh8yt
    @sh8yt 10 месяцев назад

    Right click faster than this

  • @ferozahmmed7401
    @ferozahmmed7401 7 месяцев назад

    This is definitely fastest video that make no sense .

  • @Nahkest
    @Nahkest Год назад

    Use Vim 👍

  • @matthewkeenan3003
    @matthewkeenan3003 Год назад +1

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

    • @YamiSuzume
      @YamiSuzume Год назад +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.

  • @technic_and_programming
    @technic_and_programming Год назад +3

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

    • @degenyakuza
      @degenyakuza Год назад

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

    • @logarithm0
      @logarithm0 Год назад

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

  • @anikets4699
    @anikets4699 Год назад

    just like github.

  • @narutokunn
    @narutokunn Год назад

    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)

  • @joydeepbhowmik6181
    @joydeepbhowmik6181 Год назад

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

  • @AIEntusiast_
    @AIEntusiast_ 5 месяцев назад

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

  • @quaffie
    @quaffie Год назад

    thats at least 0s faster

  • @RIP123
    @RIP123 Год назад

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

  • @ThannMalin
    @ThannMalin Год назад

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

  • @rafaelzasas9421
    @rafaelzasas9421 Год назад

    Mkdir folder & touch file.ts …….

  • @mikemegalodon2114
    @mikemegalodon2114 Год назад

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

  • @natywubet2175
    @natywubet2175 Год назад

    You look like habesha. Are you?

  • @FranklinArdiansyah
    @FranklinArdiansyah Год назад

    Neovim do better than that😊