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

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 26

  • @Sander-Brilman
    @Sander-Brilman Рік тому +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

  • @paulonobrega942
    @paulonobrega942 Рік тому

    Very useful!
    Thanks Tim
    👌

  • @konstantinoskinnas789
    @konstantinoskinnas789 4 місяці тому

    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 Рік тому

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

  • @ernest1428
    @ernest1428 Рік тому

    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 Рік тому

      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 Рік тому

      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  Рік тому

      I'm glad you found it. I covered those in this video along with sticky scroll: ua-cam.com/video/O1GUbjacjKQ/v-deo.html

  • @andywalter7426
    @andywalter7426 Рік тому +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  Рік тому

      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.

  • @ashokfunbee
    @ashokfunbee Рік тому

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

    • @IAmTimCorey
      @IAmTimCorey  Рік тому

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

  • @droam129
    @droam129 Рік тому

    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  Рік тому

      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  Рік тому

      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.

  • @jeffpenchoff79
    @jeffpenchoff79 Рік тому

    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  Рік тому

      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 Рік тому

      @@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 Рік тому

    Noice👌

  • @LiveErrors
    @LiveErrors Рік тому

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

    • @KennethFunk
      @KennethFunk Рік тому

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

    • @IAmTimCorey
      @IAmTimCorey  Рік тому

      Yep, you can name the folder anything you want.