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

  Рет қаралды 7,493

IAmTimCorey

IAmTimCorey

11 ай бұрын

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.app/?Resource=
Mailing List: signup.iamtimcorey.com/

Пікірлер: 31
@Sander-Brilman
@Sander-Brilman 11 ай бұрын
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
@IAmTimCorey
@IAmTimCorey 11 ай бұрын
You are welcome.
@paulonobrega942
@paulonobrega942 11 ай бұрын
Very useful! Thanks Tim 👌
@IAmTimCorey
@IAmTimCorey 11 ай бұрын
I am glad it was helpful.
@ashokfunbee
@ashokfunbee 11 ай бұрын
How to add class,if we have to add inside the folder or nested folders
@ernest1428
@ernest1428 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
I'm glad you found it. I covered those in this video along with sticky scroll: kzbin.info/www/bejne/hWKqhpWglsidgbM
@andywalter7426
@andywalter7426 11 ай бұрын
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 11 ай бұрын
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.
@droam129
@droam129 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
How to go root folder if we add one class in nested folder
@IAmTimCorey
@IAmTimCorey 11 ай бұрын
Click on the root of the folder before hitting the hotkey.
@jeffpenchoff79
@jeffpenchoff79 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
@@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 11 ай бұрын
Noice👌
@IAmTimCorey
@IAmTimCorey 11 ай бұрын
Thanks!
@LiveErrors
@LiveErrors 11 ай бұрын
one problem is that i dont want my folders to be called "Folder"
@KennethFunk
@KennethFunk 11 ай бұрын
Then might I suggest that you substitute your chosen name in for Folder?
@IAmTimCorey
@IAmTimCorey 11 ай бұрын
Yep, you can name the folder anything you want.
@Bartex3311
@Bartex3311 11 ай бұрын
Useless tips tbh.
@alessh7720
@alessh7720 11 ай бұрын
I saw the title and wondered what this could be about..
@alessh7720
@alessh7720 11 ай бұрын
There are some things I didn't know, so video gets a thumbs up from me
@christopherbaldwin1194
@christopherbaldwin1194 11 ай бұрын
Not very useless. Very helpful honestly. Especially for those who didn't know that and those who like to be organized and don't want to go through the barbaric way of adding folders and files etc
@Fullmetal735
@Fullmetal735 11 ай бұрын
Not really, it speeds up the file and folder creation, and since we devloper do that 30% of the time, it's nice to have a way to minimize the hassle to right click>add new file> search for something else other than .cs or modify the file to an interface.
@PaulPetersVids
@PaulPetersVids 11 ай бұрын
useless comment tbh
How To Return a Record ID from SQL to C# on Insert
11:01
IAmTimCorey
Рет қаралды 12 М.
Searching Strings [Pt 6] | C# for Beginners
15:50
dotnet
Рет қаралды 19 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 4 МЛН
Giving 1000 Phones Away
00:18
MrBeast
Рет қаралды 27 МЛН
How many pencils can hold me up?
00:40
A4
Рет қаралды 17 МЛН
UPLOADING IMAGES AND DOCUMENTS IN RADZEN
27:19
Benjamin Fadina
Рет қаралды 1,8 М.
Fluent Assertions in Unit Testing in C#
10:09
IAmTimCorey
Рет қаралды 10 М.
C# Events | Events in C# with example | C# interview question
20:31
Code With RaiGenics
Рет қаралды 15 М.
Background Jobs in ASP.NET Core
18:35
IAmTimCorey
Рет қаралды 43 М.
What's New in C# 8.0
12:56
Microsoft Visual Studio
Рет қаралды 299 М.
I tried 10 code editors
10:28
Fireship
Рет қаралды 2,8 МЛН
Bash Scripting on Linux (The Complete Guide) Class 02 - Hello World
17:24
КАХА и Джин 2
00:36
К-Media
Рет қаралды 4 МЛН