10 Time-Saving Tips for Visual Studio 2019 (as of 16.10.3)

  Рет қаралды 105,393

IAmTimCorey

IAmTimCorey

Күн бұрын

There are new time-saving shortcuts being added to Visual Studio with each update. In this video, I want to highlight ten of these shortcuts that are in Visual Studio 2019 as of version 16.10.3.
Full Training Courses: IAmTimCorey.com
Source Code: leadmagnets.app/?Resource=10V...
Mailing List: signup.iamtimcorey.com/
0:00 Introduction
1:48 Tip #1 - Smart Line Break
3:50 Tip #2 - Add missing using directives on paste
5:54 Tip #3 - Show inheritance margin
9:30 Tip #4 - Remove Unused References
11:56 Tip #5 - EditorConfig with GUI
18:26 Tip #6 - Code Cleanup Tool
23:26 Tip #7 - Add properties to constructor & reverse
27:54 Tip #8 - Test parameters
30:25 Tip #9 - Convert Properties
32:29 Tip #10 - New Razor Editor
39:42 - Concluding remarks

Пікірлер: 261
@onsidesilver7828
@onsidesilver7828 2 жыл бұрын
I'm a junior programmer with barely 3 months of experience. You're my teacher and savior Tim. Thank you!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@katelyn-h
@katelyn-h 2 жыл бұрын
Thanks Tim, great video! When making a video like this with lists, I've seen other videos where they have sections in the play bar. I don't know how to do this, but it makes it really easy to see when you start and end a specific tip. Again though, great video and I appreciate your time to make these.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That comes from putting timestamps in the description. That is something I have left for the community to do because of how much additional time it takes to record these (times change during the recording so I cannot identify the time positions until after a recording is produced). In this case, a community member named Ralfs stepped up and posted the timestamps so I added them to the description. The video now has the chapters labeled by tip.
@mrsajjad30
@mrsajjad30 2 жыл бұрын
This 40 minutes video is definitely going to save my 400+ minutes. Thank you Mr. Tim.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for building your skills with Tim
@alexcurtisdev
@alexcurtisdev 2 жыл бұрын
Good video, always enjoy your presenting style, what you would normally do vs what you can now do. Very similar to videos we do to show new features added to a system. Always enjoy coming back to your channel, learning more, and seeing the strides you keep making. Keep up the good work! :)
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for being a long time watcher
@BinaryNexus
@BinaryNexus 2 жыл бұрын
This video is worth every second. Well thought out and executed. 10/10
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thank you!
@TomRaf
@TomRaf 2 жыл бұрын
Love this! Used to type as crazy in my beginnings, took me ages but as the time goes by, I've learnt some shortcuts and now extented using your tips. Thanks!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Glad it was helpful!
@viv0102
@viv0102 2 жыл бұрын
Amazing! Thank you! The Shift+Enter for curly braces especially is so useful. You almost think why it has not been there all along!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@mikemcaulay9507
@mikemcaulay9507 2 жыл бұрын
Creating some short templates for very common things has done wonders for me. I created one that’s activated with pgs (property getter setter). So after typing scope type and name I type pgs and enter and my auto property is done. I used to keep ones for the special properties used in Xaml apps as well. At any rate, it feels a bit like the shift enter because it’s not really a huge amount of automation but it speeds up code writing considerably.
@BillHamshire
@BillHamshire 2 жыл бұрын
Type 'if' and see how unimpressed you are with shift+enter. Then try 'do', 'else' and many others. Shortcuts have been around for years.
@louisfrancisco2171
@louisfrancisco2171 2 жыл бұрын
Also, you don't need to go to the end of the line before typing shift-enter
@Memento2747
@Memento2747 2 жыл бұрын
@@IAmTimCorey I'm using Visual Studio 16.10.4 but shift+Enter does not add the curly braces just a normal space. Do I need to enable it somewhere?
@RalfsBalodis
@RalfsBalodis 2 жыл бұрын
Speaking of shortcuts... 0:00 - Intro 1:48 - Auto curly braces with Shift+Enter(bonus: Extract class into its own file) 3:50 - Add missing using directives when paste code 5:54 - Inheritance margin 9:30 - Remove unused references 11:56 - Editor config user interface 18:26 - Code clean-up (Format document profiles) 23:26 - Class constructors and properties 27:54 - Parameter validation - auto null checks 30:25 - Auto and full property conversion 32:29 - Experimental Razor editor 39:42 - Concluding remarks
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks! I appreciate the help. I updated the description.
@prashantvishnoi2878
@prashantvishnoi2878 2 жыл бұрын
Great Stuff Tim. Thanks for sharing the knowledge. Much appreciated.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for putting your trust in Tim
@robertcastles22
@robertcastles22 2 жыл бұрын
I've already started using the first 4 tips! Thanks!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Fantastic!
@vovaka440
@vovaka440 2 жыл бұрын
Absolutely wonderful, thank you, master!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You're very welcome!
@levimatheri7682
@levimatheri7682 2 жыл бұрын
His voice is so comforting
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I'm glad.
@egorsyndeev3550
@egorsyndeev3550 2 жыл бұрын
Very useful, as always. Thanks a lot Tim!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@sunilmankapure2649
@sunilmankapure2649 2 жыл бұрын
Excellent explanation. Thanks Mr. Tim.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@brianmanden
@brianmanden 2 жыл бұрын
Thank you, @IAmTimCorey !
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@matthewkeenum
@matthewkeenum 2 жыл бұрын
Fantastic video Tim! I knew a couple, but not all 10. Could you share your editorconfig file? I'm interested to know what settings you use on a day to day basis.
@israelcahanov
@israelcahanov 2 жыл бұрын
This is a great video, thank you. A tip from me, when creating a constractor , you can select all the properties(simply mark it with your mouse) and then create a constractor with all those properties from the quick action menu.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks for sharing!
@onsidesilver7828
@onsidesilver7828 2 жыл бұрын
Thanks, i was wondering if it was possible to do something like that, much appreciated!
@marcovelazquez5689
@marcovelazquez5689 2 жыл бұрын
Thanks for putting together this video.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@marcusmaunula5018
@marcusmaunula5018 2 жыл бұрын
Always appreciate these tips
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Glad you like them!
@ramansehdev8235
@ramansehdev8235 2 жыл бұрын
Great video. Helped me a lot. Thank You!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Glad it helped!
@Kazem_Javadi
@Kazem_Javadi 2 жыл бұрын
Good tips Tim Corey Thank you 🙏🏻
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@JohnMarsing
@JohnMarsing 2 жыл бұрын
Thanks for the video. Is there a tip when creating a new blazer component it automatically creates the partial code behind class? That would be nice
@TheMezanine
@TheMezanine 2 жыл бұрын
Great tips, thank a lot Tim
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@marcosotto9016
@marcosotto9016 2 жыл бұрын
TimCorey is the best one....I love it.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@wayahedia9989
@wayahedia9989 2 жыл бұрын
I usually don't have time to pursue these changes. Thank you very much TIm.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for watching
@rahulsmishra
@rahulsmishra 2 жыл бұрын
2:12 #1 Smart line break 3:50 #2 Add missing using directive 5:55 #3 Show inheritance margin 9:35 #4 Remov unused references 11:55 #5 EditorConfig with GUI 18:35 #6 Code cleanup tool 23:25 #7 Add properties to constrctor 27:57 #8 Test parameters 30:25 #9 Convert properties 32:28 New razor editor
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for sharing!
@egarabini
@egarabini 2 жыл бұрын
Thanks Tim, amazing video...
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@transtechmuthu
@transtechmuthu 2 жыл бұрын
Awesome..as usual.. thanks tim..
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@fanevaharintsoaratoanina3995
@fanevaharintsoaratoanina3995 2 жыл бұрын
Amazing content. Thanks a lot.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@scotolivera8207
@scotolivera8207 2 жыл бұрын
very very VERY Helpful, thanks a lot.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@objectaware5296
@objectaware5296 2 жыл бұрын
Very nice tips - Thanks. One thing I would add, remember if you change your settings that you save your settings Tools | Import and Export Settings and make sure the export location is included in your backups.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Great bonus tip! Thanks for sharing
@ganeshvisw
@ganeshvisw 2 жыл бұрын
Awesome Tim
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@PeterManger
@PeterManger 2 жыл бұрын
About time for number 4!! That took too long to get implemented!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That's a hard one to get implemented (and they are still trying to get it right). Sometimes the only way to truly know what is an unused reference is to run the application.
@dripcode2600
@dripcode2600 2 жыл бұрын
Thanks! I learned a few things ;)
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Great!
@arunkumarsingh8754
@arunkumarsingh8754 2 жыл бұрын
Amazing ❤️
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@arunkumarsingh8754
@arunkumarsingh8754 2 жыл бұрын
@@IAmTimCorey Hi is there any difference in Dot net programming on AMD Ryzen and Intel processor in terms of performance and compatibility? Or both works same with dotnet ?
@manukartofanu
@manukartofanu 2 жыл бұрын
Didn't know about Remove unused references. Tried now. Doesn't work in my project. When I create my own library and then reference it in another library and use classes from it in code, the "Remove unused references" option says that I don't use my library and proposes to remove it... If I accept, the build fails.
@Omar.bin.khattab
@Omar.bin.khattab 2 жыл бұрын
thanks so much tim :)
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You're most welcome!
@vladgonchar
@vladgonchar 2 жыл бұрын
Thank you!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@gunnerr91
@gunnerr91 2 жыл бұрын
this was really helpful, thanks for this amazing content! can you also make one for docker?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@ArneSostack
@ArneSostack 2 жыл бұрын
If you ctrl+. on a blank line inside your class, you can get a dialog to choose which properties to initialize when generating a constructor. Easier than adding the properties to the constructor one by one - especially since they're all checked by default.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks for sharing!
@ScottKorin
@ScottKorin 2 жыл бұрын
Holy crap the shift-enter thing is super
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
It is convenient.
@sunilmankapure2649
@sunilmankapure2649 2 жыл бұрын
Amazing!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@tetley3737
@tetley3737 2 жыл бұрын
Thanks for the video. Just a note, 'Remove Unused References' is suggesting removal of a project I am definitely using. When I removed the suggested project, the main project would not compile. I tried this in a separate branch, so no big deal, but just a note of caution. Probably want to branch before trying this feature.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Correct. The discovery is not perfect, so you want to be able to roll back your changes. That's why source control is so important.
@Richard-Vlk
@Richard-Vlk 2 жыл бұрын
BTW, can i somehow disable the new behaviour where righclick in the text editor outside selected area desects the text? I am quite used to rearanging my code with copy/paste, and now have to after selecting the block of text move the mouse carefully back over it before poping up context menu by rightclick and selecting simple "Copy". Other program, like Android Studio or notepad.exe, don't do that.
@alannt7
@alannt7 2 жыл бұрын
Awesome!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@jeeshenlee183
@jeeshenlee183 2 жыл бұрын
I can't find the "Remove unused references" on VS 2019 Community (version 16.10.3). Is it just me? OR that feature is not available on Community? or it does not work on ASP MVC project?
@ahsanzafar4836
@ahsanzafar4836 2 жыл бұрын
L
@mohammedkhalil7051
@mohammedkhalil7051 2 жыл бұрын
Me too
@adam4813
@adam4813 2 жыл бұрын
Editorconfig is fairly old and allows you to change your editor settings for various IDEs (intellij, visual studio, vs code, and more) using 1 config file. The newer usage of adding IDE specific directives is useful, but needs more standardization.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for jumping in
2 жыл бұрын
2:46 You don't actually need to move the cursor to the end of the line to do the trick. You can Shift+Enter anytime you want. Same as 4:45, you don't need to move the cursor to List
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for sharing that
@petrutarabuta5617
@petrutarabuta5617 2 жыл бұрын
Thanks!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@williamFrSFO16
@williamFrSFO16 2 жыл бұрын
Hi Tim! Thanks for "sifting through the fine print" on VS2019, to point these handy additions! The + catch is great! I did notice at the outset, you had a "value:" kinda faded in at the "Hello World." It's bugging the heck out of me, so I had to ask how you got it there? Anyway, thanks again!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Here is the video and time-code when I explain how to get those: kzbin.info/www/bejne/nGG8lomfp7CDnNk
@williamFrSFO16
@williamFrSFO16 2 жыл бұрын
@@IAmTimCorey Great! Thanks, Tim! I got it! It's not under the editor anymore (since it's checked on your VS16.10.3, you may not have noticed it has its own grouping now). Still in C# Editor, still in Advanced and still Experimental, but all the way at the bottom of the list, just above "Inheritance Margin." (It "blossomed," too!) Anyway, I found the the feature, which is important for me, since I'm still working my way up to Developer, albeit more slowly now with work beginning. With everything to learn I can use any "hint" I can get! P.S. I'm using the + feature in Getting Started in C# too! It's great!
@bujin1977
@bujin1977 2 жыл бұрын
Even more of a time-saving tip for #1, I notice that you move the cursor outside of the parentheses before hitting Shift+Enter to add the brackets. You don't need to do that. Just hitting Shift+Enter inside the parentheses will still do the same job.
@bujin1977
@bujin1977 2 жыл бұрын
I'm not 100% sure about the Remove Unused References thing. Just tried it on a project I'm working on - a library of Blazor components, which currently has about 20 Blazor components, all of which reference Microsoft.AspNetCore.Components - and guess which reference it considered "unused"...
@bujin1977
@bujin1977 2 жыл бұрын
Also, my .editorconfig files don't appear to have the UI (and I'm on 16.10.3).
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Good tip on the curly braces. I did it to more clearly show what was happening but you are right, it works anywhere on that line. As for unused references, that’s going to be a tricky one for chained references, which is why it asks you before just removing everything.
@mihaimyh
@mihaimyh 2 жыл бұрын
I would like to see a video on creating console apps with C#. Like parsing command line arguments, adding mandatory and optional arguments, displaying help, etc. Is there a library for this?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
It is built into .NET. You don’t need a library for any of that.
@mihaimyh
@mihaimyh 2 жыл бұрын
@@IAmTimCorey Do you got a docs link or an example?
@GravyTraining
@GravyTraining 2 жыл бұрын
It looks like they're trying to incorporate features that Resharper has had for years. :) Good to see this for when R# isn't available.
@kinger6819
@kinger6819 2 жыл бұрын
ctrl k + ctrl x gets me the snippets but when I type things like "prop" or "ctor" the snippet is not in the list that I can use to complete. Have been trying to find what makes that visible similar to what you have in the video. Thank you for all the great videos.
@louisfrancisco2171
@louisfrancisco2171 2 жыл бұрын
In Options/Text Editor/C#/IntelliSense, you can choose if you want them to appear or not, but I don't know how it's worded in English.
@dzianisshcharbakou1348
@dzianisshcharbakou1348 2 жыл бұрын
Hi, How did you move cursor to the parameter section after ctor + Tab (on 24:00 in this video )? Do you use some hotkeys for this?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That was just an invisible pause in the video where I accidentally moved the cursor while it was paused. Sorry, not a shortcut or hotkey.
@dzianisshcharbakou145
@dzianisshcharbakou145 2 жыл бұрын
@@IAmTimCorey Thanks for the answer ;)
@iamsurmeli
@iamsurmeli 2 жыл бұрын
Seems like VS finally started to learn something from Resharper
@GuildOfCalamity
@GuildOfCalamity 2 жыл бұрын
Can you do a project on WinUI 3.0 a.k.a Project Reunion? How to setup and install the correct libraries/extensions into VS2019?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@sir.johnbalman9877
@sir.johnbalman9877 2 жыл бұрын
Do you have a video that goes over the in-depth implementation of Repository patterns?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Not yet.
@JeyDotC
@JeyDotC 2 жыл бұрын
I'm not sure, but I think moving a class to its own file has been there since, I don't know, version 14? I could be wrong though, I've worked with several different IDEs recently and could be mixing stuff.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for sharing, I'm sure someone will double check you on it. ;-)
@devincarlson8866
@devincarlson8866 2 жыл бұрын
Tim, not sure if you’ll read this but your most recent videos audio sounds strange. Did you get a new mic set up lately? It seems to be chopping off high frequencies or using an aggressive pop filter. Makes it difficult to understand what you’re saying in your latest videos. Just an FYI!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Yep, we tracked down the issue and believe we have it solved. Thursday's video should demonstrate the changes.
@abidalisidd
@abidalisidd 2 жыл бұрын
Removed unused references is not showing in my VS version 16.10.4
@bootsector13
@bootsector13 2 жыл бұрын
the Shift + Enter working on .razor files but the cursor not in the center of the curly braces :)
@shahrukhkhan3967
@shahrukhkhan3967 2 жыл бұрын
I have tested and mine worked :)
@ryanbobian1
@ryanbobian1 2 жыл бұрын
Hey Tim, the sign up w/ Google link seems broken on the Patreon page, others are working fine.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That’s an issue for Patreon. I don’t have control over their system.
@Jazz_10110
@Jazz_10110 2 жыл бұрын
I'm not sure if this is new but I've notice lately when i do binding on xaml IntelliSense triggers and suggests the list of available properties in my VM.😁
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
They are really improving the XAML design experience.
@Ivolution091
@Ivolution091 2 жыл бұрын
The function of Tip #4 "Remove unused references" does not take into account links to packages in a xaml markup (wpf applications) and suggests to remove packages that are actually in use. If the project does not use a version control system, the result can be disastrous.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Good to know. I would submit that as a bug or check to see if it is already submitted as a bug. I'm sure that is tricky to get right, but it is something that needs to be addressed.
@jasonbrunskowski2625
@jasonbrunskowski2625 2 жыл бұрын
So, I tried the editor config a few weeks ago, and unfortunately the things I set as errors did not stop my code from compiling. And some Google searches suggested that they are working on adding that ability.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for sharing. Hope they do it soon.
@NeelZala
@NeelZala 2 жыл бұрын
Anybody Help?? I have installed Visual studio 2019 (update 16.10.4), and also enabled remove unused reference, but still not showing option for remove
@abdullahalmamunfahim3084
@abdullahalmamunfahim3084 2 жыл бұрын
Any idea why shift+enter doesnt put a curly braces rather a new line. Tools>options>Environment>Keyboard>Edit.Breakline seems to be assigned to shift+enter any Idea on how it can be fixed?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I believe this was something that was added to VS2022, not VS2019.
@abdullahalmamunfahim3084
@abdullahalmamunfahim3084 2 жыл бұрын
@@IAmTimCorey ah thanks, I'm using VS2019 for class work. That's why I was confused why it wasn't working.
@Lilithet
@Lilithet 2 жыл бұрын
Would like to point out that refactoring the class allows for constructor generation with multiple properties in a single step (works at least since 2017 though) But I prefer this method. Just throwing it out as nice to know.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks for sharing.
@morhebbek
@morhebbek 2 жыл бұрын
Can we get a video about designing a solution, how to know the classes and methods we need? my first project in my work was done, it delivered what i needed but lots of methods were too long, and i repeated some parts many times because it wasnt planned well at all. today we might start working on a new project and i want to plan it correctly (maybe a way to make the solution reusable too, not only for this one customer) thanks for your great work
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Tim has several videos covering full application development from Requirements thru development already. If you go to his KZbin channel page - kzbin.info/door/-ptWR16ITQyYOglXyQmpzw you will find play list for the TimCo app and C# App from Start to Finish. Both cover the requirements and design. In the C# App series Tim covers the WOULD Pattern in the first 5 lessons which is his approach for designing an application. Also, on www.iamtimcorey.com you will find several Start to Finish courses.
@y4ni608
@y4ni608 2 жыл бұрын
Sir you make c# learning easier
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Glad to hear that!
@jorgehimesomers
@jorgehimesomers 2 жыл бұрын
Fantastic video but in my interface it doesn´t appear the option to remove unused extensions.. even if clicked i´m using version 16.10.4
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Others had similar issues and covered in other comments. Also, someone commented in this video about how to resolve something similar - kzbin.info/www/bejne/p6eZi5miqsp0ibs
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
suggestions from other folks that may help you find what you need - "You must have VS2019 - v16.8 and above .. Tools > Options > Text Editor > C# or Basic > Advanced and select Display inline parameter name hints" "In VS settings: Text Editor > C# > Advanced > Display inline parameter name hints"
@_dyats
@_dyats 2 жыл бұрын
I want to make Intellisense work after press any key, as it works in vscode or jetbrains ides? Is that possible? What I mean is after you made mistake and removing letter by one then Intellisense won't work if you continue typing that word right.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Yep, that is possible. There is an option in the Tools->Options section to do so. You can also type Ctrl+J to bring up Intellisense whenever you want.
@_dyats
@_dyats 2 жыл бұрын
@@IAmTimCorey Thank you! 😊
@didierfolly
@didierfolly 2 жыл бұрын
Hi teacher Tim. You are the Indiana Jones of Visual Studio. You discover the treasures to show them to us in your videos. Thank you to help us to become more efficient with C#!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Glad you like them!
@kemalemin
@kemalemin 2 жыл бұрын
Tim Corey videos are like at 1x when they are at 2x. So this video is actually 20 mins 27,5 secs :)
@SirDragonClaw
@SirDragonClaw 2 жыл бұрын
Yeah I play them at 2.5x most of the time. Wayyyy to slow otherwise.
@kemalemin
@kemalemin 2 жыл бұрын
@@SirDragonClaw 2.5x ? How did you come across to that?
@colin7270
@colin7270 2 жыл бұрын
@@kemalemin VLC maybe? If you play media content through a 3rd party player there's tons of power. Then again... he's commenting on KZbin so ¯\_(ツ)_/¯
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
2.5x - Really? That like hooking the HDMI cable straight to the jugular.
@alekseev74
@alekseev74 2 жыл бұрын
"Show inheritance margin" doesn't work on my machine. Blue icon is just inactive :( VS2019 v16.10.3
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Couple things. First, try restarting Visual Studio. Second, make sure you have an actual inheritance inside of your code (one class inheriting from another class you control). If these steps still fail to get it to work, submit a bug in Visual Studio.
@wayahedia9989
@wayahedia9989 2 жыл бұрын
Wow.. after watching this, I updated VS2019 to latest and the day has been nothing but reboots and failures. So many odd things I lost track. Everything from the code folding being WAY out of sync with the code and copy paste pasting multiple copes and then locking up.. wow. Starting to think I test my code more than MS does. Can you revert VS to an earlier release?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
It sounds like you might have other issues on your machine. I had weird Visual Studio issues that turned out to be a failed Windows update.
@wayahedia9989
@wayahedia9989 2 жыл бұрын
@@IAmTimCorey Actually, Today I should be able to find out if it was ReSharper that broke with this update but man!!! what a mess. Thanks TIm.
@federicodibernardo2719
@federicodibernardo2719 2 жыл бұрын
Great! Can you make a video on VS 2022 Preview 1 ?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I already did: kzbin.info/www/bejne/jp25nmqLn7eqjaM
@federicodibernardo2719
@federicodibernardo2719 2 жыл бұрын
@@IAmTimCorey thanks!
@ravivarmavelukonda
@ravivarmavelukonda 2 жыл бұрын
I like your videos and they are very useful but really long.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Glad you like them!
@jhbonarius
@jhbonarius 2 жыл бұрын
I went back from 16.10.1 to 16.9, as the .10 series were giving us a lot of performance issues. Did they fix that yet?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I haven't had the performance issues recently (and I was having them earlier) so I think so (at least in my case).
@jhbonarius
@jhbonarius 2 жыл бұрын
@@IAmTimCorey Alas: This morning (7 hours ago) I upgraded to 16.10.3. But again had many issues: popups staying in the screen, code cleanup getting stuck at 50%, crashing of internal analyzers. I've already reported so many bugs to MS. Getting a bit tired of this. Going back to 16.9 again. 16.10 isn't their best version.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Do you have Resharper installed? I have a report from another user who was having similar issues. The end result was that Resharper wasn't compatible with the latest version and was causing all kinds of issues.
@jhbonarius
@jhbonarius 2 жыл бұрын
@@IAmTimCorey hi and thanks for your response. I already knew about the resharper issue, but that's not our case. My colleagues are also having problems like mine. Maybe it's our workload? We're mostly maintaining old .net framework asp.net apps
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That could be. I would definitely submit a bug report to Microsoft. They do read every report and that might expose something that they haven't encountered yet (or flag it as more important).
@ParrhesiaJoe
@ParrhesiaJoe 2 жыл бұрын
Wow. Over the past 10 years, they've implemented about half the things I've always had in ReSharper.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Yep.
@ParrhesiaJoe
@ParrhesiaJoe 2 жыл бұрын
@@IAmTimCorey Episode!!!
@ShurikProg
@ShurikProg 2 жыл бұрын
In VS2022 I cant do the Tip#7... There is no "Generate constructor " in dropdown menu at all
@ShurikProg
@ShurikProg 2 жыл бұрын
Im sorry, It was a static property)))
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I am glad you figured it out.
@JK-ir2yo
@JK-ir2yo 2 жыл бұрын
Using spaces over tabs? You monster! The rest of the video is pretty solid though.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
lol
@user-df3jl5hv9w
@user-df3jl5hv9w 2 жыл бұрын
The 4-th trick - in the "same" way we can remove the unused usings in c# classes !)
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Cool.
@vinitkumar1846
@vinitkumar1846 2 жыл бұрын
Shift + Enter will work in VS2017?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I do not believe so.
@vinitkumar1846
@vinitkumar1846 2 жыл бұрын
@@IAmTimCorey Hi Tim, I love the way you explain every step. And you are the only one till now who replied to my comments. Thank You ❤️
@pbrbhakta
@pbrbhakta 2 жыл бұрын
Looks like many of these features are already existing in Resharper and/or Roslynator.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Yep, although these are built-in and don't slow your Visual Studio instance down to use them (and they are free).
@ITWorx
@ITWorx 2 жыл бұрын
I think I will not use the Shift-Enter shortcut because my biggest enjoyment when I type shift - curly braces and hit enter, makes me feel good.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
As my daughter tells me "You do you!" - 👍
@SirDragonClaw
@SirDragonClaw 2 жыл бұрын
Resharper needs to look out, but really as long as VS doesn't come with resharpers Ctrl+T find everything I will still have a use for resharper.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You mean Ctrl+Q that searches ... everything? :-)
@dannyvandenwouwer684
@dannyvandenwouwer684 2 жыл бұрын
I'm started using Rider 2 years ago after using VS for more than 10 years, never looked back. It runs in 64-bit space, fast startup and a whole lot of refactors. And shift shift (find every things is awesome). Resharper slows down VS a lot and because VS runs in a 32-bit spaces it knibbles also RAM. You don't have this problem using the Rider IDE.
@charlesmagno28
@charlesmagno28 Жыл бұрын
is there anyone that has a simple mvc sln file for ecommerce? I cant seem to find one online that is working. student here, any links is appreciated thanks!
@IAmTimCorey
@IAmTimCorey Жыл бұрын
"Simple" and "ecommerce" don't typically go together. It sounds like you are looking for a pre-done project. I don't know of any.
@johnvanderpol2
@johnvanderpol2 2 жыл бұрын
code cleanup should open an overview per profile with info on the files with the most cleanup to perform
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That would take a lot of behind-the-scenes processing, especially in a real-world production application.
@johnvanderpol2
@johnvanderpol2 2 жыл бұрын
No I mean, only when requested, like a cleanup advise/overview, so you know where best spend your time refactoring.
@wangjhon317
@wangjhon317 2 жыл бұрын
move alt + arrow cant effect why?
@kirillborovikov362
@kirillborovikov362 2 жыл бұрын
Have a same problem
@kirillborovikov362
@kirillborovikov362 2 жыл бұрын
Tools -> Options -> Keyboard then select Edit.MoveSelectedLinesUp, click "Press shortcut keys" input and press Alt + Up (or whatever you want for it). And the other one is Edit.MoveSelectedLinesDown, click "Press shortcut keys" input and press Alt + Down (or whatever you want for it). stackoverflow.
@tassisto
@tassisto 2 жыл бұрын
Tested Tip #4 - it's risky and make sure you apply version controlling fellow devs
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Absolutely.
@chris_814
@chris_814 2 жыл бұрын
I really like your knowledge, but why do you always need hours for short topics ....
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Context matters. Here is an example that might help. I could do a demo of a brake pad from a car. I could say "this is a brake pad. It's job is to stop the car when you hit the brake pedal." That would be a short tutorial that told you what you need to know about a brake pad. However, if you take a step back and think about the real world, how does that prepare you to be a mechanic working on brakes? Brake pads do not function in a vacuum. You need to know how the go on the car. You need to know how the rotors and the brake pads interact. You need to know about the warning signs of bad brake pads. You need to know how the brake fluid interacts with the signal to engage the brake pads. These are all contextual and all take time. You might feel good about learning something in the two-minute tutorial, but it wasn't actually valuable to anything but your theoretical knowledge of vehicle parts. It wasn't until you learned how to use the brake pads that it became practical knowledge. That's what I teach. I teach practical knowledge that prepares you to use whatever I teach in the real world. 5-minute videos are theory. They have their place, and I'll be doing some in the future, but don't confuse them for practical content. Practical content takes time and context. Now ironically, you are posting this on a video that is 40 minutes long and shares 10 tips in that time, but I am assuming you are talking about my videos as a whole.
@chris_814
@chris_814 2 жыл бұрын
@@IAmTimCorey lol thank you for your large explanation. Ironically, it is large like the most of your videos. :D Your content is good anyway and I just like the sharing of your nice knowledge. So don't stop and keep it up... 👍
@minskowl
@minskowl 2 жыл бұрын
from 20 years Microsoft inline Jetbrains Resharper into VS
@marvinjno-baptiste726
@marvinjno-baptiste726 2 жыл бұрын
It's not a competition, we all know Resharper was way ahead for refactoring
@siarheipashkouski808
@siarheipashkouski808 2 жыл бұрын
If you really want to save your time use Rider. It's much better and faster than VS
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Thanks for sharing your opinion.
@Brock-Landers
@Brock-Landers 2 жыл бұрын
My time saving tip for VS 2019 : If you plan at working in the morning, run VS at night before you go to sleep and it should be ready when you wakeup.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
It sounds like you need to update Visual Studio. That hasn't been an issue for me in the latest version.
@SirDragonClaw
@SirDragonClaw 2 жыл бұрын
But it loads in with a large SLN in like 20-30 seconds...
@YBXtreminal
@YBXtreminal 2 жыл бұрын
Tip #3 seams to come from intellij
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Pretty much.
@ahlicoding
@ahlicoding 2 жыл бұрын
Your speech is a little bit slowly, Tim.. I set the speed to 1.25
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That's what the speed controls are for. Talking, typing, and thinking all at the same time is tough. Plus, speaking a bit more slowly helps me enunciate better.
@TheMilliardo
@TheMilliardo 2 жыл бұрын
Thank you. Now I could not buy anymore Resharper.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@mukeshmohanty4001
@mukeshmohanty4001 2 жыл бұрын
Finally they copying resharper features :)
@StuartQuinn
@StuartQuinn 2 жыл бұрын
They've been copying Resharper for many years now.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
If it will improve developer performance, it will probably end up in VS. while they are intentionally not just copying Resharper, there are only so many ways to improve productivity.
Intro to Records in C# 9 - How To Use Records And When To Use Them
1:19:44
Pokey pokey 🤣🥰❤️ #demariki
00:26
Demariki
Рет қаралды 8 МЛН
The Worlds Most Powerfull Batteries !
00:48
Woody & Kleiny
Рет қаралды 21 МЛН
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 9 МЛН
10 C# Libraries To Save You Time And Energy
33:59
IAmTimCorey
Рет қаралды 203 М.
What is Span in C# and why you should be using it
15:15
Nick Chapsas
Рет қаралды 247 М.
30+ String Manipulation Techniques in C#
1:44:07
IAmTimCorey
Рет қаралды 100 М.
15 Visual Studio Editor Tips including Intellicode and EditorConfig
1:15:01
8 await async mistakes that you SHOULD avoid in .NET
21:13
Nick Chapsas
Рет қаралды 307 М.
Inheritance vs Interfaces in C#: Object Oriented Programming
49:41
IAmTimCorey
Рет қаралды 100 М.
Intro to Unit Testing in C# using XUnit
1:42:09
IAmTimCorey
Рет қаралды 406 М.
Pokey pokey 🤣🥰❤️ #demariki
00:26
Demariki
Рет қаралды 8 МЛН