Cool features in Visual Studio 2022
Vložit
- čas přidán 27. 07. 2024
- For a recent conference, Mads Kristensen from the Visual Studio team delivered a presentation on his favorite new and improved features in Visual Studio 2022 v17.5 Preview 1.
0:00 Introduction
0:43 Window management
5:22 Document tabs
10:40 Color themes
12:57 AI based coding assistance
17:13 Temporary breakpoints
18:41 Navigate to source (Source Link)
20:01 Settings that give a "fresh car smell"
22:52 A smarter way to "Add New File"
26:34 The "Shifter" extension
28:48 The "VSColorOutput" extension
30:01 The "Solution Colors" extension
33:41 Microsoft Dev Box
38:02 Outro
Get started with Microsoft Dev Box here: aka.ms/devbox-blog
#visualstudio #vs2022 #MicrosoftDevBox - Věda a technologie
Although I already knew most of the tips, this type of review is beneficial, features you don't use daily may need a reminder.
Well prepared and great examples, one of your best sessions. More of these...
Thanks, Mads.
I can't find the Quick Add feature in Options. And a Google search isn't helping. Where do I find it?
Great presentation Mads. I've heard about Dev Box but I'm glad you took the time to show it off. We're considering it at work. 😎
Thank you for this presentation; these new features are awesome. I really fell in love with Quick Add. Kudos!
What a fantastic video. Learned so much. Thanks for recording it.
I like the coloring of the projects, Very nice, thanks!
Thanks for the demo. very handy!
oooh, that is amazing!! Thank you for sharing this info, that's very helpful!
Thanks for the extension recommendations.
No one gonna comment on what a nice looking Garage he has???
It's pristine...
Great video for newbie like me. Please keep making these types of videos!
Nice features! But it would be great that in the video description you put a little note about the exact version where they are first available...it's only a suggestion... Excellent job and congratulations for all the Visual Studio development team!
Great feedback. I've updated the description to mention the version of VS I'm using in the video.
@@visualstudio Thanks!!!😀
Thank you, It helps me.
Hey, Mads, thank you for this great tutorial! I tried to add the Quick Add function to VS 2022, but when I tried looking for using VS's Quick Search (Ctrl-Q) I couldn't find it. I searched using both "Quick Add" and "Add New File". Both failed. I even tried going to Tools | Options | Environment | Preview Features but couldn't find it. I have VS 2022 ver. 17.4.4. Has something changed between the time you made this video and now?
@MicroSoft Visual Studio @Mads, Brilliant video! I've been using VS 2022 for over a year now coming from CodeBlocks x64 and love Visual Studio so so much. For the last tip, I couldn't find Solution Color option when I right click on my solution for C++? I also checked Settings -> Environment -> Fonts and Colors -> but no Solution Color option. I always have many projects open and would love to distinguish between them on the fly! Cheers~
show tabs in multiple rows: FINALLY. how may engineers did it took you to implement that
It would be nice if the summary had links to the extensions
Hi Mads, I just drop for part of AI based coding, as I saw you have enabled Co-Pilot and I just instaled it 2 days ago. Since I using VS2022 from day one I can say with 100% guarantee that suggestion comming from CoPilot and not VS as I never got it (like one you show it) till 2 days ago!
In my experience, I have never used copilot, but do use VS2022 and I definitely do get prompts like that.
true, I get some prompts but they are much slower to say at least (in base VS)
Great vid!!! Thank you. Were you using Intellicode or Copilot? is it the same as in VSC?
Thanks for the good tips. But like @CodeParticles said below.... it appears that the solution color option is not available on the release version of VS2022.
Nice overview with some hints that I didn't know yet, thanks for that!
One thing made me smirk a bit though: "Very very handy that I can finally see all my open files at one glance." Nice to see Visual Studio 2022 finally catches up with WndTabs for Visual C++ 6.0 that provided this feature over 20 years ago. :)
Is there book mircosoft would recommend for BEGINNERS, step by step use of vs studio, for html, java, and python. Adobe has classroom book which is fantastic resource to learn how to use their products. Just saying we're not all programmers . Thanks
Looks like not all those features are in Community Edition. I have latest Version 17.4.3 but missing for example sort tabs by regular expression, "Quick add", ect
I would love devbox for home developer use. I write little utility apps and something like that would be great for me.
Got the latest professional version of visual studio 2022 and don't have the Regular Expression tab colouring :( It seems its in on the preview versions!!
Hi, you guys should add like vim, a keyshortcut to move the text caret up or down a certain ammount of lines, or move a certain ammount of words on the same line, and the same goes with selecting. You should also had an option to number the lines like vim. I know there's a vim extension but their logic like having to press a key to start to type, and other things doesn't makes sense. We can't even change the type of text caret.
Is there a way to highligth the variable with different colors as Notepad++ does?
Thank you very much! It' really useful! But had 2 problems. 1. For some reasons, my Visual studio doesn't understand the "ctrl+alt+up(down)" shortcut. So, I changed it for "ctrl+alt+plus(minus)" and Shifter began to work. 2. My Visual studio doesn't have feature "Quick Add', so I installed an extension.
I have the same problem in VS 17.4 Preview 6. These functions will be in the upcoming preview release of VS 17.5
I have the same preview version as in the video (17.5 preview 1), yet "Quick Add" feature is still missing there,
How can we restore the old style of VS2019, where the commands are formatted in the traditional way, not in Python style ?
The tab improvements shown here are not yet available as demonstrated, right? When I place my tabs to the left or right, the menu doesn't align with the text editor, which is especially apparent due to the colored line at the top of both areas.
Tab coloring based on regexes isn't available on my machine (VS2022 17.4 Preview 5 for arm64).
me neither. can`t find the colorize tab by regex. Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.4.0 Preview 5.0
They'll be in the next preview release of VS
NO WAY! CONGRATULATIONS!! A MICROSOFT CONTACTEE! NEXT THING YOU KNOW MICROSOFT WILL BE HANDING OUT PRIZES. AHAHAHA AHAHAHA LOL
Good video but instead of trying to find the right window in a long list of tabs I recommend using Go to Files (Ctrl+Shift+T). I also recommend giving it a better shortcut like F4.
Also, I'm wondering, could you have used AI to generate AddData(3); AddData(4); AddData(5);... after typing AddData(1); AddData(2)? Something like this is probably the most common use case that could use AI support.
find out?
Ctrl+Shift+A for quick adding an item, how do you put the item in the correct project? You did not have the issue because you only had 1 project.
Does Community Edition have AI based coding assistance as well? Or Professional / Enterprise include only?
Community has the same as Pro/Enterprise
Hi. Is the chart missing in VS 2022 toolbox?
Cool stuff! Thanks for the video. I learned and am using document tabs group by project, recently opened and colorized. Actually, very useful! What version of VS do I need to enable preview 'Add New File'? I have; Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.3.6 I use your extension Shift F2 now. ?Maybe I have to remove extension?
They will be in the upcoming preview release of VS 17.5
I would trade all these new features for a faster compile time (such a dog now) and a Hot Reload (edit and continue) that actually worked. Still, cool features. Thanks, Mads.
Does these settings gets sync using my Microsoft account?
Enable Quick Add doesn't seem to exist in the 17.4.4 version.
Which extensions do you use to get "Tab to accept" and "Alt+. next" displayed?
It is built into Intellisense now. No additional install.
Hi I am using Visual Studio 2022 for doing a python project with a tree structure . I am unable to do absolute import and ModuleNotFoundError is coming. Also, in Visual Studio 2022, i am unable to find Run & Debug icon for launch json setting. Please help. Python and Interpreter version is same 3.11
Do Shifter will be work in C# code editor too?
All languages, including C#
Liked ctrl+shift+A to create class + interface together. But, the AI should understand that the class Client, in your example, is coupled with IClient, right? So, it should be
public class Client : IClient
I need a business email login for microsoft dev box
Nice. But work on those regular expressions ;-) Also - new car smell is nice, but it's a permanent setting... most of the time you're actually going to want the state preserved so you can come back to it. Better would be a quick way to restore the project to "new car smell" using e.g. a simple shortcut key combination...Shifter has potential but a popup preview of the colour would be a good idea, particularly in hex mode.
6:30 I am the opposite of everyone else. I only keep a few tabs open that I need, or I get confused.
I don't use AI assist.
AI will decommission all developers
Will we ever have the feature to be able to separate windows in output window? I want to be able to see console output at the same time as debug output.
MAYBE YOU COULD GET A BIGGER MONITOR, SO YOU CAN DISPLAY MORE WINDOWS. OR PERHAPS, YOU COULD GET AN ADDITIONAL VIDEO CARD, WHICH MIGHT HELP TOO. THEN YOU CAN BE A REAL PROGRAMMER WITH MULTIPLE MONITORS LIKE THEY HAVE AT NASA, THE SPACE AGENCY! AHAHAHA AHAHAHA LOL
@@mariostelzner4530 you can get the biggest monitor in the world but that would still not allow you to see simultaneously the output of “console output” & “debug output”. You have to choose from a drop-down menu to see individual output. My request is if we will ever be able to separate those outputs into different windows.
Sorry if I misunderstood, but why don't just drag the tab of the debbug window and move to the other side of the screen. All tabs are movable, you can put side by side what you need.
You have the AI very fast. Mine is very slow. I usually have to wait for like 3-4 seconds to show any suggestion. How do you do that?
SPEND MEGA-BUCKS ON A SUPERCOMPUTER. THEY ARE REALLY FAST. AS A MATTER OF FACT, THEY ARE SO FAST THAT THEY COMPLETE ALL YOUR ACTIONS BEFORE YOU EVEN TYPE THEM IN.
SERIOUSLY, CAN YOU REALLY PROGRAM COMPUTERS? AHAHAHA AHAHAHA LOL
I guess I'll need to wait for the 17.5 release for these new features.
I think the Client class should've inherited from IClient interface automatically. Then when adding properties and methods to IClient it should populate Client as well. If we're using AI, lets use it fully. Syncfusion has been doing something similar for years.
We're slowly starting to want Visual Rust.
How do you add existing folders to a solution? Possibly with files inside?
There's an option to view all files and they will appear greyed out in the solution explorer. Then right click and select include or something like that. Super simple and available for a long time.
There's no way to add physical folders to a solution as a Solution Folder. If this is something you'd like, please vote for it here: developercommunity.visualstudio.com/t/Make-Solution-Folders-map-to-real-folder/358125?q=solution+folder&ftype=idea&stateGroup=active
If you meant how to add solution folders, then that's one of those features that, let's be honest, should have been available like 10 years ago. Time to vote i guess.
VERY CAREFULLY! AHAHAHA AHAHAHA LOL
Merci ❤
That's cool
I have Visual Studio Community 2022 (64-bit) - Preview Version 17.4.0 Preview 6.0 None of those features are present
Is the AI functionality different then what Co-Pilot offers ?
It's Co-Pilot and IntelliCode both offering their piece of the puzzle
@@visualstudio Oh nice! So I don't need a Github Co-Pilot license if I buy Visual Studio?
@@DerekReynolds You do if you wish to use Co-Pilot. IntelliCode is freely available
CONGRATULATIONS!!!! YOU GOT A REPLY FROM SOMEONE AT MICROSOFT. OKAY, TELL ME THE TRUTH. YOU DON'T WORK FOR MICROSOFT. AHAHAHA AHAHAHA LOL
Why no chat about Copilot?
I don't really believe in spending efforts on "suggest code based on English language comments", expect reasonable use cases too limited. Anything trying to be too smart ...
Anyway, great and concise introduction to a number of features worth checking out, thanks!
When you release assembly generator code
When 104 keys are not enough to cover all shortcut combinations.
When is
Microsoft Analysis Services Projects
SQL Server Integration Services Projects
Microsoft Reporting Services Projects
When is theese 3 going to work in Visual Studio 2022? I have to use 2019 or lower!
Feel like this video could have been done in 10 minutes but nice tips nonetheless.
I'm thinking of CZcams video about unresolved bugs in VS2022.
Instead of "cool" features I would expect quality. 17.3.6 version does not allow to compile MAUI app for 2 weeks, issue open, nobody cares.
Windows forms support still poor for the gui.
First
This could probably be edited to 15 mins. I found it poorly organized and long winded.
yeah ? and how many bugs, regressions and so called "fixed bugs" that will never be fixed ?
before talking 2022, fix vs 2019 already
I cringe every time you say "gonna" and "wanna"
Question. If you have a branch with the same solution in the branched folder, does it keep track of the colors assigned to each instance of the same named file?
\\PathA\mySolution.sln - Blue
\\PathB\mySolution.sln - Green
Visual Studio Community Preview Edition is getting sooo bloated and slow.
Just because I want to learn Blazor I am forced to guinea pig features nobody wants and nobody needs.