New File Dialog Tips and Tricks for Visual Studio in 10 Minutes or Less

Sdílet
Vložit
  • čas přidán 6. 09. 2024
  • The new file dialog allows us to quickly create new files in Visual Studio without the big template list. However, there is much more to the dialog than first meets the eye. Let's see how it works in 10 minutes or less.
    Full Training Courses: IAmTimCorey.com
    Source Code: leadmagnets.ap...
    Mailing List: signup.iamtimc...

Komentáře • 26

  • @Sander-Brilman
    @Sander-Brilman Před rokem +3

    I was actually using it already when it came out. At first i hated it and though it was a real downgrade from the template list thinking "Microsoft is coming with unwanted changes again". But after trying it i saw how much faster it is and now i cant do without. Sometime you just have to give it a try 😄
    Thank you for showing it to people who don't know about this yet

  • @konstantinoskinnas789
    @konstantinoskinnas789 Před 11 dny

    omg the folder one is gold! I am trying to go full keyboard and I was doing something weird like rightclick on the project(with the keyboard shortcut I have) and then scroll down to the folder. That is much better. Thank you for the tip! Also the double classes one seems to be useful.

  • @ashokfunbee
    @ashokfunbee Před rokem

    How to add class,if we have to add inside the folder or nested folders

  • @andywalter7426
    @andywalter7426 Před rokem +1

    One case where this did not work as expected is if somebody was in a razor class library and chose for example First.razor, then did not do as expected unfortunately. However, worked fine if it was a blazor web assembly project though.

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      It chooses the most common type based upon the extension and the location. If you think it isn't the most common type, you could submit a bug report.

  • @paulonobrega942
    @paulonobrega942 Před rokem

    Very useful!
    Thanks Tim
    👌

  • @droam129
    @droam129 Před rokem

    I haven’t used this, but based on what I’ve seen, it’s still inferior to the file creation experience in Rider, where you can pick which TYPE of .cs file you want with a single click (Class, Interface, Record, Struct, or Enum). It’s frustrating that Enums still aren’t “first-class citizens” from a file creation standpoint in VS.

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      Are you expecting an enum to have its own file type? I'm pretty sure that's an uncommon request. Enums typically get put into other files or multiple get put in one file.

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      Also, if you name a class file with the interface naming convention, you will get an interface. Records also don't typically get their own file because of how small they are. Same with structs.

  • @ashokfunbee
    @ashokfunbee Před rokem

    How to go root folder if we add one class in nested folder

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      Click on the root of the folder before hitting the hotkey.

  • @ernest1428
    @ernest1428 Před rokem

    Hi Tim, this question is probably not directly related with the video, but how did you get the curly braces with different colors? I know the last update implemented this, but I cannot find the option to toggle this on, and I have already updated my VS, I work in W11 as a reference.

    • @ernest1428
      @ernest1428 Před rokem

      By the way, this video has been super helpful to me, because my VS for some reason does not have the JSON class eligible in the new item menu, and I got frustrated since I had already all the necessary extensions for it to be there, and in the C# Mastercourse, in the SQL lesson, you add this file, and this may be the solution for that, I can now create the JSON file with this functionality, thanks a lot

    • @ernest1428
      @ernest1428 Před rokem

      SOLUTION: The setting is under Tools > Options > Text Editor > General > Display options > Enable brace pair colorization. OR You can simply use the search box in the top for the setting: "Enable brace pair colorization".

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      I'm glad you found it. I covered those in this video along with sticky scroll: czcams.com/video/O1GUbjacjKQ/video.html

  • @jeffpenchoff79
    @jeffpenchoff79 Před rokem

    Tim - I love your tutorials and have purchased a few of them on your site (highly recommended) but this tip falls flat for me. What I find amazing is that Microsoft is only getting around to adding this "feature" now. This is day 1 chapter 1 stuff for any development IDE IMO. I'm curious... Is this ability incorporated into VS Code yet? Will it be? Finally I could see a newbie really messing up their folder structure this way if they're not careful.

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      I'm not sure I understand - you are bothered by the fact that, while they added this feature, it should have been added earlier?
      As for VSCode, it has a different way of adding files and folders, but it is also very quick.
      Finally, anyone can mess up their folder structure regardless of the tools you give them. I'm not sure how you would envision Microsoft making that better. Would you expect them to make the file and folder creation harder or with more "are you sure" dialogs?

    • @jeffpenchoff79
      @jeffpenchoff79 Před rokem

      @@IAmTimCorey Yes - it should have been there earlier (say VS 2019?). I am aware VS Code opens files differently. I was just wondering if this type of method could be used to open/add multiple files at once using VS Code. I also agree that anyone can mess up their structure using any tool (I've seen enough overly-convoluted folder structures to know) but this just makes it that much easier in my opinion. I've been using MS development tools/software since 1980 and Microsoft COBOL. They always seem to be behind everyone else and, when they do "catch up", it's usually in some half-assed form. This, again purely my opinion, is a classic example. Maybe I'm being too judgemental here? If so apologies all around. I'm sure that many will find this useful.

  • @no-bc4kc
    @no-bc4kc Před rokem

    Noice👌

  • @LiveErrors
    @LiveErrors Před rokem

    one problem is that i dont want my folders to be called "Folder"

    • @KennethFunk
      @KennethFunk Před rokem

      Then might I suggest that you substitute your chosen name in for Folder?

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      Yep, you can name the folder anything you want.