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

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

КОМЕНТАРІ • 147

  • @andergarcia1115
    @andergarcia1115 10 місяців тому +20

    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  10 місяців тому +2

      You are welcome.

    • @phillismable6303
      @phillismable6303 10 місяців тому

      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 10 місяців тому

    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.

  • @arnotek
    @arnotek 10 місяців тому +1

    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  10 місяців тому

      There is definitely a LOT that is going on behind the scenes. It gets quite complex.

  • @dingdong141
    @dingdong141 10 місяців тому +2

    Fantastic work... User of VS for long time but never explored useful settings in such a detail. God bless you my teacher.

  • @اسيرالعلم-ك9ظ
    @اسيرالعلم-ك9ظ 9 місяців тому +2

    Best channel on UA-cam, thanks for ur helphul videos ❤

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

    Awesome! I'm new to using VS 2022 and is currently setting up my new work environment, and this was great! Followed from start to finish. Thanks!

  • @BittermanAndy
    @BittermanAndy 10 місяців тому +3

    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  10 місяців тому +2

      Chaning your settings because they were on your machine? Nope, time to teach the junior dev a valuable life lesson.

  • @RubenALopes
    @RubenALopes 10 місяців тому +2

    To master your craft you first have to master your tools. Thanks for this!

  • @faisalalhoqani6151
    @faisalalhoqani6151 Місяць тому

    Great tweaks thank you for sharing dear Tim and keep it up dear.

  • @jasonlokismith
    @jasonlokismith 9 місяців тому

    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.

  • @dmacuk
    @dmacuk 10 місяців тому

    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  10 місяців тому

      Great! I'm glad it is helpful.

  • @hgmamaci
    @hgmamaci 10 місяців тому

    There is always an extra when I watch your videos. Thank you very much for your efforts.

  • @AvgDan
    @AvgDan 10 місяців тому

    Thank you, I don't have time to watch right now but I've been wanting to see this from you!

  • @kell7689
    @kell7689 10 місяців тому

    The quality and frequency of these videos is pretty wild

  • @Mawral
    @Mawral 10 місяців тому +1

    More useful than I could've expected, much thanks.

  • @tetsballer1835
    @tetsballer1835 10 місяців тому

    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!

  • @tabhorian
    @tabhorian 10 місяців тому

    If only for the Underscore private fields this was worth it, but there is so much more. thanks!

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому

      I am glad it was helpful.

  • @JakobStrasser
    @JakobStrasser 10 місяців тому

    We're finally using vs2022 at work, thanks for all the tips!

  • @codefoxtrot
    @codefoxtrot 10 місяців тому

    Long overdue video, thanks Tim! Call me crazy, I also add an s_ naming convention for private or internal static fields.

  • @AvgDan
    @AvgDan 9 місяців тому +1

    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  9 місяців тому +2

      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 9 місяців тому +1

      @@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!

  • @Hope2022-g5p
    @Hope2022-g5p 10 місяців тому

    This is another very helpful content, Tim. Thank You!

  • @kiquenet
    @kiquenet 8 місяців тому

    Great mister !! VS power !!!
    Maybe export VS settings to file xml or json?
    Using powershell to load VS Settings ?

  • @marceloleoncaceres6826
    @marceloleoncaceres6826 2 місяці тому

    Thank you Tim, another great video. Do you know the name of the "functionality" (if it exists) of writing curly braces when creating a new class?, I like that instead of the curly braces, it writes only a semicolon; after the namespace.

    • @IAmTimCorey
      @IAmTimCorey  2 місяці тому +1

      I'm not following. When you define a class, you always use curly braces like so:
      public class Demo
      {
      public string Test { get; set; }
      }
      When you instantiate the class, you can do so in a number of ways (one per line):
      Demo demo = new();
      Demo demo = new Demo();
      var demo = new Demo();
      Demo demo = new() { Test = "Tim" };
      Is that last one what you were talking about? Or were you talking about file scoped namespaces, where the namespace didn't have curly braces like so:
      namespace Info;
      public class Demo
      {
      public string Test { get; set; }
      }
      Instead of this:
      namespace Info
      {
      public class Demo
      {
      public string Test { get; set; }
      }
      }

    • @marceloleoncaceres6826
      @marceloleoncaceres6826 2 місяці тому

      @@IAmTimCorey Thank you Tim for your answer, I really appreciate your time to answer me. I'm sorry for the confusion, English is not my mother tongue. File scoped namespaces is exactly what I was looking for. Thanks again, you are the greatest.

  • @theonlywallrus
    @theonlywallrus 10 місяців тому +1

    Thanks Tim! Super helpful, I appreciate the effort you put it into this

  • @leviking1989
    @leviking1989 10 місяців тому

    Excellent suggestions, I am going to try them all! Thank you, Tim! :)

  • @AvgDan
    @AvgDan 9 місяців тому

    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  9 місяців тому +1

      Yep, that is a nice feature.

  • @hjoseph777
    @hjoseph777 7 місяців тому

    I was looking for that how to instruction .excellent work 🎉

    • @IAmTimCorey
      @IAmTimCorey  7 місяців тому

      I am glad it was helpful.

  • @edburdo
    @edburdo 10 місяців тому

    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  10 місяців тому

      Yep, conforming to a new culture can be hard when you want something different.

  • @allenbythesea
    @allenbythesea 10 місяців тому

    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  10 місяців тому

      Look in the Options dialog at the various settings.

  • @michi1106
    @michi1106 7 місяців тому

    Thanks a lot, this video was exactly which i needed, to impove my work with VS

  • @amitmaurya7698
    @amitmaurya7698 6 місяців тому

    Hi tim, can you please share video to install and set up vs 2022 17.10.3 latest version of vs, facing some concern

  • @Wildertech
    @Wildertech 10 місяців тому

    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  10 місяців тому

      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.

  • @Hazzel31337
    @Hazzel31337 10 місяців тому

    used some of them thanks, highly recommended video guys

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому

      I am glad it was helpful.

  • @peterstangelo8627
    @peterstangelo8627 10 місяців тому

    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  10 місяців тому +1

      I believe that came from just installing Visual Studio.

  • @caseypries7559
    @caseypries7559 10 місяців тому

    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.

  • @reinhardlackner1925
    @reinhardlackner1925 10 місяців тому

    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  10 місяців тому +1

      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.

  • @kidservice
    @kidservice 10 місяців тому

    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)

  • @unskeptable
    @unskeptable 10 місяців тому

    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

  • @gonace
    @gonace 10 місяців тому

    In my opinion, spaces are always the preferred way since tabs can be inconsistent between systems, but spaces are not.

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому

      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.

  • @SagharMax
    @SagharMax 10 місяців тому

    Mine is the same as yours, exactly. I am excited; thank you for sharing this video.

  • @UmanPC
    @UmanPC 10 місяців тому

    A huge thank You, Tim.

  • @BrentHollett
    @BrentHollett 10 місяців тому

    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  10 місяців тому

      Whatever works best for you.

  • @zius1975
    @zius1975 10 місяців тому

    I can't find this option "Automatically surround selction...." on my VS2022

    • @djlunarmonk
      @djlunarmonk 10 місяців тому

      Me neither, seems it is actually a preview feature.

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому +1

      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 10 місяців тому

      Oddly enough, I updated yesterday after seeing this video and didn't get the latest version like I would assume. Today though, thanks!

  • @harkiratsingh4947
    @harkiratsingh4947 10 місяців тому

    Keyboard shortcut to add new item ?

  • @GoTSkillZ
    @GoTSkillZ 10 місяців тому

    Can you export these settings and share the file?

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому

      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.

  • @myWorldDiscover
    @myWorldDiscover 10 місяців тому

    Many thanks for the nice explanation

  • @caseyspaulding
    @caseyspaulding 10 місяців тому

    Thanks Tim!

  • @jeffsherman9638
    @jeffsherman9638 10 місяців тому

    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  10 місяців тому

      That's rather specific. You might need to get some help building an extension for that.

  • @SamMackrill
    @SamMackrill 10 місяців тому

    Nice. You forgot the best option: Auto save on losing focus in Documents

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому

      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.

  • @Susandwyer
    @Susandwyer 10 місяців тому

    Colorize tabs! Excellent.

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому +1

      Glad you like them!

    • @Susandwyer
      @Susandwyer 10 місяців тому

      @@IAmTimCoreyI do, and much more particularly in text editor. Always excited to see a new video. Thanks boss.

    • @TonyWhitley
      @TonyWhitley 10 місяців тому

      My new discovery is that the mouse scroll closes and opens multiple lines of tabs.

  • @GuildOfCalamity
    @GuildOfCalamity 10 місяців тому

    Thanks for this video Cory, but I think you could speed this up just a little bit.

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому +2

      UA-cam has an option to speed up the video playback.

  • @OnoderaMyGirl
    @OnoderaMyGirl 10 місяців тому

    the best ty

  • @silverfox4123
    @silverfox4123 10 місяців тому

    I typically use Jetbrains Rider but do use Studio Enterprise.

  • @MichealShodamola
    @MichealShodamola 10 місяців тому

    My Mentor

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому

      I am glad it was helpful.

  • @Timberfist
    @Timberfist 10 місяців тому +1

    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  10 місяців тому

      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.

  • @petrzurek5713
    @petrzurek5713 10 місяців тому +1

    My one and only tweak is to install JB Rider 😀

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому

      What benefit does it give you over the free Visual Studio?

    • @petrzurek5713
      @petrzurek5713 10 місяців тому

      @@IAmTimCorey I can run it natively on my Apple Silicon Macs

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому +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 10 місяців тому +7

    Leaving things on default, enables you to help others easier.

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому +14

      Sacrificing speed for compatibility is not often a wise choice for developers.

    • @jasonevans498
      @jasonevans498 10 місяців тому +4

      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 10 місяців тому

      Some great Tips Tim, thanks

    • @mynameisshadywhat
      @mynameisshadywhat 10 місяців тому

      Providing suggestions on how they can improve their productivity or development experience can be far more valuable.

  • @WillEhrendreich
    @WillEhrendreich 10 місяців тому

    Anyone here tried neovim?

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому +1

      Not me.

    • @TonyWhitley
      @TonyWhitley 10 місяців тому

      😄😁😆😅🤣😂🤡

    • @WillEhrendreich
      @WillEhrendreich 10 місяців тому

      @@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 10 місяців тому

      I typed a long reply which YT discarded so here's the tl;dr: laughing AT it.

    • @WillEhrendreich
      @WillEhrendreich 10 місяців тому

      @@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?

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

    Jesus Christ, so much talking instead of showing the actual tweaks...

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

      This is broken up by chapters. You can actually just go and find the ones you want or speed up the video.

  • @emersonstori
    @emersonstori 6 місяців тому

    Going in light mode is for amateur developers, ok, ok, don't be mad.... kkkkkkkkkkkkkkkkkkkk

    • @IAmTimCorey
      @IAmTimCorey  6 місяців тому

      I know you were joking, but there are eye conditions that make dark mode difficult to see for some people. I've had to wrestle with how best to display things here on UA-cam. I've landed on dark mode because it benefits the most people. For presentations on a projector, I switch to light mode so that people can more easily read the text.
      Have you tried any custom themes for Visual Studio?

  • @MiningForPies
    @MiningForPies 10 місяців тому

    Step one, install Rider. 🤔

    • @IAmTimCorey
      @IAmTimCorey  10 місяців тому

      What benefit does it give you over the free Visual Studio?

    • @MiningForPies
      @MiningForPies 10 місяців тому

      @@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 10 місяців тому

      ​@@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 10 місяців тому

      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.