My 30+ Tweaks to Visual Studio 2022 - Make VS Work For You

  Рет қаралды 28,286

IAmTimCorey

IAmTimCorey

Күн бұрын

I often get asked about how I set up Visual Studio, including what theme do I use, what extensions I use, and how I configure the options. Often people think that I have installed additional features because my Visual Studio has quality of life upgrades that theirs does not seem to have.
In this video, I will show you the 30+ changes I have made to Visual Studio to make it work better for me. I believe that every developer should learn how their IDE works to make themselves more efficient. Knowing what is available also allows you to make a more informed decision about changing IDEs.
Full Training Courses: IAmTimCorey.com
Mailing List: signup.iamtimcorey.com/
00:00 Introduction
01:45 Extensions
07:23 Environment - General
09:39 Environment - Preview Features
11:47 Environment - Tabs and Windows
16:33 Projects and Solutions - General
19:13 Text Editor - General
27:45 Text Editor - Code Cleanup
30:20 Text Editor - C# - General
33:35 Text Editor - C# - Scroll Bars
37:48 Text Editor - C# - Tabs
40:21 Text Editor - C# - Advanced
48:09 Text Editor - C# - Code Style - Naming
51:46 Text Editor - C# - IntelliSense
53:36 Debugging - .NET / C++ Hot Reload
55:22 Debugging - XAML Hot Reload
57:38 GitHub - Copilot chat
1:00:11 Conclusion

Пікірлер: 130
@andergarcia1115
@andergarcia1115 2 ай бұрын
I want to say that I don't think I speak only for myself. There are many people out there who think the same, so I'm speaking for them as well. Your work gives me a road, something to fight for, a dream to follow. It gives me hope. Thank you for waking up the programmer inside me. Thank you with all my heart, you are my inspiration and i promise to follow you till the end.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@phillismable6303
@phillismable6303 Ай бұрын
He isn't Jesus you plank, get out in to some green places for a walk as you seem to be about to break.
@cecilchampenois4998
@cecilchampenois4998 2 ай бұрын
Thank you for shining brilliant light on all the ways to improve our IDE environment and to become betters software developers. You do a great job, Tim. Keep up the good work. You are very much appreciated.
@dingdong141
@dingdong141 2 ай бұрын
Fantastic work... User of VS for long time but never explored useful settings in such a detail. God bless you my teacher.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Thank you.
@theonlywallrus
@theonlywallrus 2 ай бұрын
Thanks Tim! Super helpful, I appreciate the effort you put it into this
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@AvgDan
@AvgDan 2 ай бұрын
Thank you, I don't have time to watch right now but I've been wanting to see this from you!
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@leviking1989
@leviking1989 2 ай бұрын
Excellent suggestions, I am going to try them all! Thank you, Tim! :)
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@user-mo7hs1en8o
@user-mo7hs1en8o Ай бұрын
Best channel on KZbin, thanks for ur helphul videos ❤
@IAmTimCorey
@IAmTimCorey Ай бұрын
Thank you!
@RubenALopes
@RubenALopes 2 ай бұрын
To master your craft you first have to master your tools. Thanks for this!
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You're very welcome!
@arnotek
@arnotek 2 ай бұрын
I was looking for something like this for a while - this was very helpful. Many times when watching your videos I will see you do something and I am usually going "wait, what did he do?" (Thank you for usually saying what keys you hit that we can't see in the video - it helps a lot.) I can't help but thinking about the amount of conditional logic in Visual Studio. The IDEs of today are wonderful - complex, but wonderful just the same.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
There is definitely a LOT that is going on behind the scenes. It gets quite complex.
@BittermanAndy
@BittermanAndy 2 ай бұрын
Good idea for a video. I used to spend a lot more time personalising my VS layout and shortcuts than I do now; at some point, re-setting it all up every upgrade or on every new PC became more hassle than it was worth. But making simple little tweaks (the kind readily available in options menus and/or transferrable from import/export settings) can result in big wins. Then I had a junior dev assisting me with something on my PC the other day, "I'm just going to move your Solution Explorer to the other side of the screen", NO! NO! HOW DARE YOU! NO! Are they not teaching juniors basic etiquette any more??? 🤣🤣🤣🤣🤣🤣
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Chaning your settings because they were on your machine? Nope, time to teach the junior dev a valuable life lesson.
@user-jk4zc8lh4m
@user-jk4zc8lh4m 2 ай бұрын
This is another very helpful content, Tim. Thank You!
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@hgmamaci
@hgmamaci 2 ай бұрын
There is always an extra when I watch your videos. Thank you very much for your efforts.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@Mawral
@Mawral 2 ай бұрын
More useful than I could've expected, much thanks.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@SagharMax
@SagharMax 2 ай бұрын
Mine is the same as yours, exactly. I am excited; thank you for sharing this video.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@JakobStrasser
@JakobStrasser 2 ай бұрын
We're finally using vs2022 at work, thanks for all the tips!
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@UmanPC
@UmanPC 2 ай бұрын
A huge thank You, Tim.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@tetsballer1835
@tetsballer1835 2 ай бұрын
Decided today is the day to upgrade from vs 2019 to 2022 at work, I will for sure be trying some of these new settings!
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Great!
@Hazzel31337
@Hazzel31337 2 ай бұрын
used some of them thanks, highly recommended video guys
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
I am glad it was helpful.
@mohammedabujayyab6146
@mohammedabujayyab6146 2 ай бұрын
Many thanks for the nice explanation
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@jasonlokismith
@jasonlokismith Ай бұрын
first off Tim, awesome video, really really really loved this. Second to this if there is anything i have learnt from this video is that VS is lightyears ahead when it comes to its IDE, i have always said it but these tweaks just solidifies that thought for me.
@IAmTimCorey
@IAmTimCorey Ай бұрын
Thanks for sharing!
@caseyspaulding
@caseyspaulding 2 ай бұрын
Thanks Tim!
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@dmacuk
@dmacuk 2 ай бұрын
Absolutely fantastic, 10/10 for Font Sizer, not just for presentation's, but for those, like me, with deteriorating eyesight. At last I can VS clearly.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Great! I'm glad it is helpful.
@Wildertech
@Wildertech 2 ай бұрын
Great content. I enjoy your videos a lot. Is there any way to export these changes so that I can apply them across multiple computers or pass them on to coworkers/new-hires?
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
The settings are saved in a file, so in theory you could share that file. I'm not sure if it is designed to be shared, though. In the Tools -> Options dialog under Environment, there is an Import/Export Settings section. It doesn't seem fully formed, though. I believe Editorconfig can do some of these things, but I'm not sure how much. I've also not had great success with making that work consistently.
@codefoxtrot
@codefoxtrot 2 ай бұрын
Long overdue video, thanks Tim! Call me crazy, I also add an s_ naming convention for private or internal static fields.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
You are welcome.
@kidservice
@kidservice 2 ай бұрын
Thanks, it was very useful and in your settings I found a fix for missing snippets that was bothering me (in the c# intellisense section)
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Great!
@kiquenet
@kiquenet 19 күн бұрын
Great mister !! VS power !!! Maybe export VS settings to file xml or json? Using powershell to load VS Settings ?
@kell7689
@kell7689 2 ай бұрын
The quality and frequency of these videos is pretty wild
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Thank you.
@allenbythesea
@allenbythesea 2 ай бұрын
Thanks for this, some really awesome tweaks that I was not even slightly aware of. How are we supposed to know about these otherwise?
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Look in the Options dialog at the various settings.
@peterstangelo8627
@peterstangelo8627 2 ай бұрын
Hi thanks for this (I noticed you have an extension called "Inline suggestions" by Microsoft -what is it? -and where can I find it?)
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
I believe that came from just installing Visual Studio.
@tabhorian
@tabhorian 2 ай бұрын
If only for the Underscore private fields this was worth it, but there is so much more. thanks!
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
I am glad it was helpful.
@reinhardlackner1925
@reinhardlackner1925 2 ай бұрын
just a quick question about font sizer - what was your actual problem since I see the extension on the visual studio marketplace and do not really understand your remarks about getting in contact with mads to use it?
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Originally, Font Sizer was an open-source plug-in by someone else. However, that person deleted their entire online profile, including their extensions and the GitHub repo. I found an old fork of the extension and passed it on to Mads. He created the Font Sizer 2.0 extension and put it on the marketplace.
@unskeptable
@unskeptable 2 ай бұрын
Guys do you know if edit and continue is going to be fixed ? It is currently broken because in big projects it starts scanning every file and hangs
@caseypries7559
@caseypries7559 2 ай бұрын
Tim, any idea how to stop VS from auto completing code? I create a div tag and when completing the closing tag with > it replaces the tag with some garbage i never asked for. I think it's a syncfusion tag or something. Anyway, I hit undo and it goes back to my div tag and I can complete it without further error. I've used VS off and on for several years now and 2022 is the worst I've ever used. The intellisence is slow and sometimes stops. The error list is often not fully populated and takes several rebuilds to catch all the errors. Some times it shows errors that aren't there and it requires a restart to fix. Most of the time when adding nuget packages there are errors requiring multiple uninstalls and reinstalls. It's just really bad.
@AvgDan
@AvgDan Ай бұрын
I like how scrolling mouse wheel up when hovering over the tabs makes the tabs collapse to single row and scrolling mouse wheel down shows the extra rows again.
@IAmTimCorey
@IAmTimCorey Ай бұрын
Yep, that is a nice feature.
@OnoderaMyGirl
@OnoderaMyGirl Ай бұрын
the best ty
@IAmTimCorey
@IAmTimCorey Ай бұрын
You are welcome.
@AvgDan
@AvgDan Ай бұрын
20:31 I really wish there was an option to change this to "Go to Implementation". I prefer the modifier on this one to be Ctrl+Alt because I like being able to highlight an entire word when I hold control and click.
@IAmTimCorey
@IAmTimCorey Ай бұрын
You can! Go to Environment -> Keyboard under the Options menu. in there search for "Implementation". You will see the "Edit.GoToImplementation" shortcut. Change it to what works best for you.
@AvgDan
@AvgDan Ай бұрын
@@IAmTimCorey When I hold CTRL+ALT and left-click into the "Press shortcut keys" nothing gets entered into the textbox for me to click "Assign". Thanks though!
@edburdo
@edburdo 2 ай бұрын
tabs/spaces: I always did 2 spaces. Curly braces started at the end of the line. it always felt more concise and less space. New place I work for, wants 4 spaces, new lines, etc. They do many of their PRs outside of Visual Studio, so "reformatting" to view isn't an easy option.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Yep, conforming to a new culture can be hard when you want something different.
@BrentHollett
@BrentHollett 2 ай бұрын
I always have my explorer windows on the left, matching Windows Explorer. I never understood why IDE developers started putting in on the right by default.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Whatever works best for you.
@harkiratsingh4947
@harkiratsingh4947 2 ай бұрын
Keyboard shortcut to add new item ?
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Ctrl+Shift+A
@GoTSkillZ
@GoTSkillZ 2 ай бұрын
Can you export these settings and share the file?
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
The settings are saved in a file, so in theory you could share that file. I'm not sure if it is designed to be shared, though. In the Tools -> Options dialog under Environment, there is an Import/Export Settings section. It doesn't seem fully formed, though. I believe Editorconfig can do some of these things, but I'm not sure how much. I've also not had great success with making that work consistently.
@gonace
@gonace Ай бұрын
In my opinion, spaces are always the preferred way since tabs can be inconsistent between systems, but spaces are not.
@IAmTimCorey
@IAmTimCorey Ай бұрын
That inconsistency is actually a feature. If you need to make the text bigger in order to read it, spaces get bigger too. That can lead to little available space. By making tabs smaller in that scenario, you gain back some needed space.
@Susandwyer
@Susandwyer 2 ай бұрын
Colorize tabs! Excellent.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Glad you like them!
@Susandwyer
@Susandwyer 2 ай бұрын
@@IAmTimCoreyI do, and much more particularly in text editor. Always excited to see a new video. Thanks boss.
@TonyWhitley
@TonyWhitley 2 ай бұрын
My new discovery is that the mouse scroll closes and opens multiple lines of tabs.
@SamMackrill
@SamMackrill 2 ай бұрын
Nice. You forgot the best option: Auto save on losing focus in Documents
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
I don't personally use that one. I never got used to the save on lost focus. Part of it is because I use hot reload a lot and it can mess with that. For example, if I get halfway through a fix and have to respond to a Teams message, hot reload breaks because the change isn't fully formed.
@jeffsherman9638
@jeffsherman9638 2 ай бұрын
I’m looking for custom colorize comments where most are set to the default color while others can be set to another color
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
That's rather specific. You might need to get some help building an extension for that.
@zius1975
@zius1975 2 ай бұрын
I can't find this option "Automatically surround selction...." on my VS2022
@djlunarmonk
@djlunarmonk 2 ай бұрын
Me neither, seems it is actually a preview feature.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
It is part of Visual Studio 2022 version 17.9. That's the latest public version (not a preview version). So you need to make sure Visual Studio is updated. Then it should be an option.
@djlunarmonk
@djlunarmonk 2 ай бұрын
Oddly enough, I updated yesterday after seeing this video and didn't get the latest version like I would assume. Today though, thanks!
@GuildOfCalamity
@GuildOfCalamity 2 ай бұрын
Thanks for this video Cory, but I think you could speed this up just a little bit.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
KZbin has an option to speed up the video playback.
@MichealShodamola
@MichealShodamola 2 ай бұрын
My Mentor
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
I am glad it was helpful.
@silverfox4123
@silverfox4123 2 ай бұрын
I typically use Jetbrains Rider but do use Studio Enterprise.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Sounds good.
@sexonlegs666
@sexonlegs666 2 ай бұрын
Font SIZE = Hold down Ctrl + Mouse wheel
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Only for the font in the text editor. Not for the fonts in the menus, dialogs, Solution Explorer, etc.
@petrzurek5713
@petrzurek5713 2 ай бұрын
My one and only tweak is to install JB Rider 😀
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
What benefit does it give you over the free Visual Studio?
@petrzurek5713
@petrzurek5713 2 ай бұрын
@@IAmTimCorey I can run it natively on my Apple Silicon Macs
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
That is a nice one. VS Code has the C# Dev Kit now, but it isn't up to the same level where it can compete with Rider on Mac.
@_miranHorvat
@_miranHorvat 2 ай бұрын
Leaving things on default, enables you to help others easier.
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Sacrificing speed for compatibility is not often a wise choice for developers.
@jasonevans498
@jasonevans498 2 ай бұрын
Customising my Visual Studio has never been a problem for when I needed to help others. Leaving things default for the sake of other people is not worth it.
@X400DYL
@X400DYL 2 ай бұрын
Some great Tips Tim, thanks
@mynameisshadywhat
@mynameisshadywhat 2 ай бұрын
Providing suggestions on how they can improve their productivity or development experience can be far more valuable.
@Timberfist
@Timberfist 2 ай бұрын
Why spend so much of the video talking about settings that are already the default? An hour is already a long time to spend on a video that simply covers tweaks to an IDE; why make it longer than in needs to be by including non-tweaks?
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Depending on when you installed Visual Studio for the first time, some may be default or not. Everyone will have different defaults because Microsoft doesn't want to interrupt what you are used to in order to give you something new. They want you to opt-in.
@WillEhrendreich
@WillEhrendreich 2 ай бұрын
Anyone here tried neovim?
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
Not me.
@TonyWhitley
@TonyWhitley 2 ай бұрын
😄😁😆😅🤣😂🤡
@WillEhrendreich
@WillEhrendreich 2 ай бұрын
@@TonyWhitley I'm not exactly what is funny about that. Are you laughing AT neovim? Laughing that I would ask about it? Laughing at me for it? Something else?
@TonyWhitley
@TonyWhitley 2 ай бұрын
I typed a long reply which YT discarded so here's the tl;dr: laughing AT it.
@WillEhrendreich
@WillEhrendreich 2 ай бұрын
@@TonyWhitley are you from the "laughing at neovim because you love Visual Studio" perspective, or the "laughing at Neovim because you love Emacs" perspective? Also, I'm going to guess you haven't tried it?
@MiningForPies
@MiningForPies 2 ай бұрын
Step one, install Rider. 🤔
@IAmTimCorey
@IAmTimCorey 2 ай бұрын
What benefit does it give you over the free Visual Studio?
@MiningForPies
@MiningForPies 2 ай бұрын
@@IAmTimCorey visual studio isn’t free for me. I don’t use windows at home, so rider gives me a cross platform consistency. Work enterprise edition on my work laptop, but I prefer a combination of Rider for its refactoring tools and VS Code for its speed. Luckily they let me use my licence for Rider on my work laptop and I ignore visual studio.
@codefoxtrot
@codefoxtrot 2 ай бұрын
​@@IAmTimCorey As someone who uses both Rider and Visual Studio, I would offer that Rider has more built-in code analyzers that spot much more than Visual Studio does. Example, it spots 'multiple enumerations' when I've done a LINQ operation on an IEnumerable that causes it to be enumerated more than once. Just one of many examples. I would also venture to say, Rider analyzers tend to 'teach' you newer ways of doing things as the C# language specification evolves. There are downsides to Rider, e.g. big one, no SQL database project designer or ability to publish a SQL database project. Hot Reload when working with Blazor is also not as strong. So it's a give and a take. Visual Studio Community is certainly amazing. I never think of things as VS2022 vs Rider. Just awesome to have two powerhouse tools out there... ohh and it would be remiss not to mention vscode, the superior HTML editor!
@padybonder
@padybonder 2 ай бұрын
For me Rider just feels more user friendly, particularly when using the new UI in Rider, and very often new usability features in Visual Studio already existed in Rider Some examples: Right-clicking on a project in the solution pops up a menu with at most half the options as visual studio: helps to find the thing you need more quickly. It offers easier tweaking of editor colors, which I used to have a very vibrant red background on parts of code with an error: this is much easier to see as a thin red squigly line. The side and bottom 'windows' (solution explorer, text explorer) are much easier/quicker to open or close. There are play buttons in the editor for the launchsettings.json files, which enable starting a project directly from there. Also it feels quicker for large solutions, although the difference is not that big any more since VS 2022. Further it has better support for markdown files, including plantuml support.
15 Visual Studio Editor Tips including Intellicode and EditorConfig
1:15:01
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28
Buy Feastables, Win Unlimited Money
00:51
MrBeast 2
Рет қаралды 81 МЛН
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Рет қаралды 34 МЛН
Which one will take more 😉
00:27
Polar
Рет қаралды 78 МЛН
The Path to C# in 2024
1:03:41
IAmTimCorey
Рет қаралды 63 М.
Wisdom From Linus | Prime Reacts
12:18
ThePrimeTime
Рет қаралды 359 М.
Compiling MS-DOS 4.0 using DOSbox & Qemu
17:59
Neozeed
Рет қаралды 3 М.
Microsoft FINALLY killed it
6:45
Alex Ziskind
Рет қаралды 519 М.
You Need to Update Your .NET Solution Files!
6:59
Nick Chapsas
Рет қаралды 72 М.
How Do I Structure My Application?
12:25
IAmTimCorey
Рет қаралды 17 М.
What Are Some Major Mistakes Developers Make in Their Career?
37:32
Await Async Tasks Are Getting Awesome in .NET 9!
9:24
Nick Chapsas
Рет қаралды 81 М.
Kitten has a slime in her diaper?! 🙀 #cat #kitten #cute
00:28