I like to separate my classes into regions. It just makes it easy for me. So i made a snippet for that. The one im proud of is my method snippet. Just specify the return, name, and params and done! This inspired me to make a console app that copies my snippets into the VS folder for me because of how annoying the snippet manager can be. I got on the struggle bus about 3 months ago and figured it out, eventually. Im glad you made this. No more headaches. Thank you for basically teaching me everything I know. I cant be more thankful.
I did the same, but I left parameter part empty, the problem is I also tried to add an empty block part just to tab there "quicker", but it only switches between type,name,param
@@v0id_d3m0n I tried that it didn't worked, besides I already got accustomed to this one so I'm just pressing enter after snipet and it's jumps in the code block section.
Hi Tim, I’ve been using code snippets since VS 2005 and in my opinion, they are the single greatest thing that Microsoft has added to Visual Studio. I’ve written code snippets to outline entire UI pages (search, view, add, edit, and audit pages), my code behind (yes, I still use WebForms) and business logic classes. Because these snippets are large, I found that putting a comment at the beginning of the snippet that includes all of the parameters contained within the snippet very useful. I include several TODO: comments and commented out examples to remind me of tasks I need to complete and the syntax I need to use when working with certain objects/methods. Since my snippets references other classes/methods outside of the snippet, establishing a consistent coding pattern and naming convention is critical as it allows me to make certain assumptions when creating my snippets. Snippets have greatly reduced my coding time and made my applications a lot more consistent than it would be if I had to create everything from scratch each time I added a class. Thank you for all of your videos. I have found them very helpful.
Great video. I can now layout regions in my classes, add methods, and specify fields and local variables by simply typing a couple of characters and tabbing twice. It really saves a lot of time. Thanks alot.
Thanks for the video. I worked at MS for 15 years, the state of this feature seems like it was never completed. The core part is there (ie, it works), but missing is the snippet editor. It is like a summer intern was working on it, but left before it was completed. As it stands now, even in VS 2022, every change has to be re-imported; can't go back and simply update the XML file. VS Code does a better job with snippets.
That may be exactly what happened. The danger with big software projects is that items that aren't critical priorities tend to get ignored forever. In this case, 15 years of pain and frustration should elevate the issue over time but when you evaluate the "feature" that is needed in a vacuum, it is never that important compared to other priorities.
I was dumbfounded when you switched to VS Code -- why on earth!? But this turns out to be a great tip! A short explanation there would have been helpful, like "VS won't edit a .snippet and pretend it's just a .XML but VS Code will!" In a pinch, you can edit in VS by renaming .snippet to .XML and back, but that's so tedious. Thanks!
Hi Tim, that's a great video. I was searching for adding code snippets for adding Arrange, Act, Assert comments in a unit test which was always so repetitive.
Thank you for the awesome video. In the end you talk about time saving, but I would like to add another (possibly even more important than time) benefit: it reduces decision fatigue. So in addition to saving time, it can add more productive coding time into your day because you have more mental energy left for the important stuff.
Thanks for the feedback. I believe in giving context for what I am teaching and that takes time. My goal is not entertainment but true education. Please watch your language.
@@IAmTimCorey I noticed later in the vid how much effort and quality you put in the vid and forgot about the comment. I was quite in a bad mood when I left the comment, so I am rly sorry for my language.
This video helped me a lot. Thanks for the good work. I was wondering if I can pay the weekly challanges subscription with PayPal cause I couldn't do that. The only option was with credit card and I don't have one. Can I pay the subscription with PayPal?
Unfortunately, I don't control which payment options are available. I enable everything I can but it is up to the providers to support what I'm offering. I believe that my provider can't work with PayPal on subscription-based payments. Sorry about that.
Tim, check out Snippet Designer by Matthew Manela on github, might come in handy. I'm using Microsoft Visual Studio Community 2019 Preview Version 16.7.0 Preview 1.0 and it's working fine (for what i need it for that is).
Anyone super struggling with this in VS 2022? All the steps so far (17 min in) are the same. Typing the shortcut shows the snippet in the list as expected, but double-tab does nothing (actually, it just double tabs!). Restarted VS, still no luck. Double clicking on the shortcut in the list also doesn't work. Right click Snippet menu is also not there. In Tools / Options / Text Editor / C# / IntelliSense I see some experimental changes happening, but haven't figured out the right combination. Anyone get this to work?
Yes. So helpful, thank you. I now have snippets for Serilog Information, Warning and Error they even include the $"" for string interpolation. Such a time saver. Did you know you can have multiple snippets in a file? And, the snippet can also add a "using Serilog;" line for you as well.
cool. i have create with this demo... a using and namespace statement code snippet for the new VS 2022. Its good, because then i get the using directives too using System.......and more
Your tips are amazing. I just have a query regarding snippets. You showed an example snippet with name date etc. Name/author: I can add my name. Is there a way where date : shows the current date?
Strange thing... I removed the cw snippet and replaced it with one of my own so it inserts quotation marks inside then places the cursor inside the quotes. The shortcut will still use the MS snippet on cw Is there another place on disk that it is reading the old snippet from. I also did one for interpolation $$"{$end$}" and that works as expected every time however another one for Write() will place the cursor just before the dot after Console.
I would recommend not trying to overwrite Microsoft's snippets. It might have been in the list next to the MS one or it might be flipping a coin as to which to access.
@@IAmTimCorey I completely removed it to try and figure what is going on and it will still pop. It is not reading any cw snippet as I removed my own one too to see if it was conflicting. The snippet it is using now has Console.WriteLine in what I assume is the title tag.
You're a life saver Tim! Is there any way to expand snippets with the "Enter" key instead of double tapping "Tab". I've searched through every setting and couldn't find a way to change it. Coming from years of VS Code I'm used to autocompletions and snippets with the Enter key. I'm losing my mind trying to figure it out!
Do you think you can do a followup video on how to create snippets that is in use in blazor server side? Because I tried the html one for a blazor page (which is razor components) and did not show it. Blazor is probably being used more now than Razor Pages since you can do more with Blazor server side than with Razor Pages.
I love snippets! Is it possible to create a snippet, that can take multiple carets or multiple selections of text (with Ctrl+Alt+Click/Selection) and either insert or surround said carets or text selections?
Uh, one more annoying question: I often have to change a mthod from e.g. "public override string methodname" to "public override Task methodname" (but without making it async). I have a code snippet for this. But I also have to change all return statements to return Task.FromResult(previous_return_variable/value). Can code snippets "find" all return statements in the given method? Or should I instead look into how I'm creating custom code fixes?
Thanks for a great video, did not know that the snippets was this powerful and configurable. When you create your own snippets and add them to the manager, is it just local or is it stored in your logged in account in VS?
@IAmTimCorey I used the "Import" tag you forgot to include, in my Newtonsoft Json decorated property snippet, so when it's generated it'll include a using statement if I forgot to.
I'm not sure where you think I forgot a using statement. My examples don't use Newtonsoft.json. My appsettings.json file doesn't need Newtonsoft, it just needs IConfiguration, which I assumed would be set up since we are using the _config variable that you can only get by creating it (and adding the using statement). Typically you do that in the constructor using dependency injection.
Why text editor intellisense does not recognize shortcut i've set for my snippet? But i still can type shortcut without tip and snippet works properly by the way. VS2019.
Hey Corey, I tried to import my snippets countless times, even making the exact snippet youve made. I cannot import them because VS says they are "invalid".
@@IAmTimCorey Hey Corey. Hats off to you for even responding. I made a typical dumb programmer mistake and spend about an hour trying to figure why it was not working only to find out that the syntax of my xml was incorrect. Quite an under accomplishment if you aksed me. I probably would not make it as a professional programmer. Lol.
its really great video for snippets...thanks sir.....please could provide that XML file where we can paste our code and save as with .snippet extension.
Why you write this in VSCode and not direct in VS Studio? And are a plugin like snippet designer not easier? (dont know wha but the 2022 version are not more so nice like the older 2019 but mybe only a bug). realy i would now this, im a total beginner and search for better workflow.
Great Video Thankyou. I've made a snippet for a double property. I was wondering if there is an automatic way to change the Capitalisation. For example if I want a private backing field and respect naming conventions.
Hey, can I get help? I want to create a snippet that auto completes methods with braces, instead of pressing tab to auto complete and get `method name`, press tab to auto complete and get `method name()`. It will help me cause most of the time I just need to execute the method. Please help
@@IAmTimCorey Thanks for believing in me but I asked for some help not code, do you know how I can edit the snippet that auto completes function names in intelisense?
A big thank to you Tim, can you also make a tutorial on how to create keyboard shortcuts for like Toggle comment? I personally not a big friend of ctrl + k,c,u... Thanks.
Not really. The problem is that the toggle comments isn't a snippet. It is a reactive system that comments/uncomments a variable number of lines. That is why it is a shortcut, not a snippet. A snippet is a set amount of content that you will insert at a given point. What you can do is change the keyboard shortcut for that event to better fit your process.
Hey Tim! I'm using this to create custom snippets, and even though I've added them in, typing in the shortcut isn't showing the snippet for me. Google isn't helping too much either. Any idea why this could be happening?
@@IAmTimCorey I added it as per the directions in the tutorial. It does have a shortcut. Sometimes the shortcut works when I type it, other times it does not.
I expected a 5 minute video max. Do you need a phd to write snippets?. I expect to SAVE TIME by writing snippets and not to watch a 40+ minute video about snippets.
You don't need a PhD to write a snippet, but you should understand the context around writing a snippet so that you can actually use it in the real world. Context matters in development. Just learning a new trick isn't good enough. You need to know when to use it, when not to use it, how to undo it, and more. Not knowing those things will ensure that you make some bad mistakes as a developer.
I focus primarily on free solutions because not everyone can afford to pay for a different IDE. Also, with so much built into Visual Studio, I have found that a lot of developers who like alternatives often like them for features they didn't know were also provided for free with Visual Studio.
Yeah, I get that. and yes, all jetbrains software is free for students. I also got a discount once I finished my degree. anyway, I find visual studio is very heavy and over complecated, to the point where I prefer to pay for my IDE to do the job. I do not work for jetbrains, just a happy customer. By the way, nice in depth video. 😊
Snippets are weak and good for nothing. In 2020 year, it's still not possible to make a primitive snippet like this: private $type$ $lowercaseName$; public $type$ $uppercaseName$ { get { return $lowercaseName$; } set { $lowercaseName$ = value; } }
@@IAmTimCorey Thank you for your reply. But 'prop' make only 'public int MyProperty { get; set; }'. My question: is it possible to change a first letter to uppercase from one parameter ? Or is it possible to apply string function to a parameter ? Is it possible to create second parameter from a first one?
Thanks, Tim!
Another advantage of snippets is that they help me stay focused on what I want to do, rather than trying to remember the "how".
You are welcome.
0:00 - Intro
1:41 - Creating demo application
3:00 - Code snippets: few built in snippets, ease of use
6:00 - Creating a code snippet in VSCode
14:18 - Import code snippet in Visual Studio
17:31 - Creating a code snippet: quick recap
22:40 - HTML snippet
28:30 - Advanced snippets
30:38 - Creating advanced snippet
34:35 - Creating advanced snippet: Declarations - variables in the code snippet
43:46 - Conclusions and concluding remarks
Thank you! I added to the video. If you folks appreciate Ralf doing this, please let him know!
I like to separate my classes into regions. It just makes it easy for me. So i made a snippet for that. The one im proud of is my method snippet. Just specify the return, name, and params and done!
This inspired me to make a console app that copies my snippets into the VS folder for me because of how annoying the snippet manager can be.
I got on the struggle bus about 3 months ago and figured it out, eventually. Im glad you made this. No more headaches. Thank you for basically teaching me everything I know. I cant be more thankful.
I'm glad I was able to be of help.
I did the same, but I left parameter part empty, the problem is I also tried to add an empty block part just to tab there "quicker", but it only switches between type,name,param
param
Parameters
block
Block Code
Any idea?
@@wagnerthomas6780 i assume it doesn't work because u left it blank? Maybe try putting something like "myCode" as the default instead?
@@v0id_d3m0n I tried that it didn't worked, besides I already got accustomed to this one so I'm just pressing enter after snipet and it's jumps in the code block section.
This video deserves receiving more likes !
Thank you Tim for the effort
Glad you liked it!
Hi Tim,
I’ve been using code snippets since VS 2005 and in my opinion, they are the single greatest thing that Microsoft has added to Visual Studio. I’ve written code snippets to outline entire UI pages (search, view, add, edit, and audit pages), my code behind (yes, I still use WebForms) and business logic classes. Because these snippets are large, I found that putting a comment at the beginning of the snippet that includes all of the parameters contained within the snippet very useful. I include several TODO: comments and commented out examples to remind me of tasks I need to complete and the syntax I need to use when working with certain objects/methods. Since my snippets references other classes/methods outside of the snippet, establishing a consistent coding pattern and naming convention is critical as it allows me to make certain assumptions when creating my snippets.
Snippets have greatly reduced my coding time and made my applications a lot more consistent than it would be if I had to create everything from scratch each time I added a class.
Thank you for all of your videos. I have found them very helpful.
Awesome! Thanks for sharing.
Really appreciate your work Tim! One of the best (probably the best) C# tutorials available on the internet!
Thank you!
Great video. I can now layout regions in my classes, add methods, and specify fields and local variables by simply typing a couple of characters and tabbing twice. It really saves a lot of time. Thanks alot.
Great!
Another great in-depth tutorial! Wasn‘t even aware of using such a cool feature, thx!
Excellent!
Thanks for the video. I worked at MS for 15 years, the state of this feature seems like it was never completed. The core part is there (ie, it works), but missing is the snippet editor. It is like a summer intern was working on it, but left before it was completed. As it stands now, even in VS 2022, every change has to be re-imported; can't go back and simply update the XML file. VS Code does a better job with snippets.
That may be exactly what happened. The danger with big software projects is that items that aren't critical priorities tend to get ignored forever. In this case, 15 years of pain and frustration should elevate the issue over time but when you evaluate the "feature" that is needed in a vacuum, it is never that important compared to other priorities.
You are a legend! For every topic that i needed some instructions so far regarding C# you had a tutorial.
I’m glad my content has been helpful.
I was dumbfounded when you switched to VS Code -- why on earth!? But this turns out to be a great tip! A short explanation there would have been helpful, like "VS won't edit a .snippet and pretend it's just a .XML but VS Code will!" In a pinch, you can edit in VS by renaming .snippet to .XML and back, but that's so tedious. Thanks!
Yep, it is a nice text editor.
Hi Tim, that's a great video. I was searching for adding code snippets for adding Arrange, Act, Assert comments in a unit test which was always so repetitive.
I am glad it was helpful.
Created a custom snippet based on video and code samples. Thank you Tim!
Fantastic!
It's a so wonderful course. I ensure I can speed my coding a lot. Thank Tim Corey for his elaborative course!
You are welcome.
Ingenious. Just saved me 2 hours/day :)
Made a snippet for xUnit [Fact] block. Jeez, things are going great now and way faster
Awesome!
This is great! Thanks for the video. I'll be using this, plus whatever I can learn about debugging to make my life easier.
Awesome!
Lol I was at 22:30 wondering to myself if I could use this for HTML and you were right there with me.
Perfect!
Thank you for the awesome video. In the end you talk about time saving, but I would like to add another (possibly even more important than time) benefit: it reduces decision fatigue. So in addition to saving time, it can add more productive coding time into your day because you have more mental energy left for the important stuff.
Thanks for sharing.
Man, you're just awesome. This is epic 🙌
Glad you like it!
a bit dragged out at the begining, but alot of awesome examples, thank you
You are welcome.
Thanks Tim. Very well produced video, great content, and very helpful.
Thanks for the encouragement and support
Great in-depth tutorial. It really save my time and defiantly increase productivity. Thank you so much sir.
Glad it was helpful!
Jesus christ can u just get to the point of the video
Edit: the wait was more than worth it, quality content right there
Thanks for the feedback. I believe in giving context for what I am teaching and that takes time. My goal is not entertainment but true education. Please watch your language.
@@IAmTimCorey I noticed later in the vid how much effort and quality you put in the vid and forgot about the comment. I was quite in a bad mood when I left the comment, so I am rly sorry for my language.
This video helped me a lot.
Thanks for the good work.
I was wondering if I can pay the weekly challanges subscription with PayPal cause I couldn't do that. The only option was with credit card and I don't have one.
Can I pay the subscription with PayPal?
Unfortunately, I don't control which payment options are available. I enable everything I can but it is up to the providers to support what I'm offering. I believe that my provider can't work with PayPal on subscription-based payments. Sorry about that.
This is a huge time saver. Thanks for sharing.
You are welcome.
Fantastic, very helpful
Great!
Thank you, this was really helpful!!
You are welcome.
Thanks tim,
Now how do i write code in same line?
with this snippet it goes to next line pls help
Tim, check out Snippet Designer by Matthew Manela on github, might come in handy.
I'm using Microsoft Visual Studio Community 2019 Preview Version 16.7.0 Preview 1.0
and it's working fine (for what i need it for that is).
Thanks for the suggestion.
I can confirm it still works great in VS 2022 and I'm able to remake my vscode snippets in visual studio in seconds!
❤🥰
Anyone super struggling with this in VS 2022? All the steps so far (17 min in) are the same. Typing the shortcut shows the snippet in the list as expected, but double-tab does nothing (actually, it just double tabs!). Restarted VS, still no luck. Double clicking on the shortcut in the list also doesn't work. Right click Snippet menu is also not there.
In Tools / Options / Text Editor / C# / IntelliSense I see some experimental changes happening, but haven't figured out the right combination. Anyone get this to work?
Awesome stuff! Thankyou, already speeding things up!
Excellent!
incredible, thanks dude
You are welcome.
Yes. So helpful, thank you. I now have snippets for Serilog Information, Warning and Error they even include the $"" for string interpolation. Such a time saver. Did you know you can have multiple snippets in a file? And, the snippet can also add a "using Serilog;" line for you as well.
Thanks for the tips.
cool. i have create with this demo... a using and namespace statement code snippet for the new VS 2022. Its good, because then i get the using directives too using System.......and more
Great!
Your tips are amazing. I just have a query regarding snippets. You showed an example snippet with name date etc. Name/author: I can add my name. Is there a way where date : shows the current date?
Strange thing... I removed the cw snippet and replaced it with one of my own so it inserts quotation marks inside then places the cursor inside the quotes. The shortcut will still use the MS snippet on cw
Is there another place on disk that it is reading the old snippet from. I also did one for interpolation $$"{$end$}" and that works as expected every time however another one for Write() will place the cursor just before the dot after Console.
I would recommend not trying to overwrite Microsoft's snippets. It might have been in the list next to the MS one or it might be flipping a coin as to which to access.
@@IAmTimCorey I completely removed it to try and figure what is going on and it will still pop. It is not reading any cw snippet as I removed my own one too to see if it was conflicting. The snippet it is using now has Console.WriteLine in what I assume is the title tag.
You're a life saver Tim! Is there any way to expand snippets with the "Enter" key instead of double tapping "Tab". I've searched through every setting and couldn't find a way to change it. Coming from years of VS Code I'm used to autocompletions and snippets with the Enter key. I'm losing my mind trying to figure it out!
You might be able to change that in the key mappings, but I have never tried.
Do you think you can do a followup video on how to create snippets that is in use in blazor server side? Because I tried the html one for a blazor page (which is razor components) and did not show it. Blazor is probably being used more now than Razor Pages since you can do more with Blazor server side than with Razor Pages.
When I do my video on Blazor server-side, I'll try to remember to add that as part of the video.
Nice job
Thanks!
Great!
Thanks, Tim!
You are welcome.
I love snippets! Is it possible to create a snippet, that can take multiple carets or multiple selections of text (with Ctrl+Alt+Click/Selection) and either insert or surround said carets or text selections?
I don’t think so.
@@IAmTimCorey Bugger 🙂 I also love the multi caret features. All apps should have that.
Uh, one more annoying question: I often have to change a mthod from e.g. "public override string methodname" to "public override Task methodname" (but without making it async). I have a code snippet for this. But I also have to change all return statements to return Task.FromResult(previous_return_variable/value). Can code snippets "find" all return statements in the given method? Or should I instead look into how I'm creating custom code fixes?
Thank you so much Tim.
You are welcome.
Thanks for a great video, did not know that the snippets was this powerful and configurable. When you create your own snippets and add them to the manager, is it just local or is it stored in your logged in account in VS?
It is just local to that machine.
@IAmTimCorey I used the "Import" tag you forgot to include, in my Newtonsoft Json decorated property snippet, so when it's generated it'll include a using statement if I forgot to.
I'm not sure where you think I forgot a using statement. My examples don't use Newtonsoft.json. My appsettings.json file doesn't need Newtonsoft, it just needs IConfiguration, which I assumed would be set up since we are using the _config variable that you can only get by creating it (and adding the using statement). Typically you do that in the constructor using dependency injection.
Thanks , very much Tim
You are welcome.
Why text editor intellisense does not recognize shortcut i've set for my snippet? But i still can type shortcut without tip and snippet works properly by the way. VS2019.
It happens if you use Resharper Intellisense scheme because code snippet created outside Resharper area and cannot be recognized.
Interesting. There should be a way to resolve this but since I don't use Resharper, I don't know how to do that.
Hey Corey, I tried to import my snippets countless times, even making the exact snippet youve made. I cannot import them because VS says they are "invalid".
I'm not sure what the issue is here. Sorry.
@@IAmTimCorey Hey Corey. Hats off to you for even responding. I made a typical dumb programmer mistake and spend about an hour trying to figure why it was not working only to find out that the syntax of my xml was incorrect. Quite an under accomplishment if you aksed me. I probably would not make it as a professional programmer. Lol.
life saver
Great!
Very good! Thank you!
Glad you liked it!
great video, very helpful l Thanks!
You are welcome.
its really great video for snippets...thanks sir.....please could provide that XML file where we can paste our code and save as with .snippet extension.
Why you write this in VSCode and not direct in VS Studio?
And are a plugin like snippet designer not easier? (dont know wha but the 2022 version are not more so nice like the older 2019 but mybe only a bug).
realy i would now this, im a total beginner and search for better workflow.
I addressed that directly at 5:20 in the video.
Great Video Thankyou. I've made a snippet for a double property. I was wondering if there is an automatic way to change the Capitalisation. For example if I want a private backing field and respect naming conventions.
The snippet should conform to the standard of where it is inserted as far as the layout but naming is still up to the user.
11:27 i want to make a c++ snippet and idk how to write the code language, is it CPP or CPlusPlus or what is it?
Sorry, I don't know. I'm assuming you can find the answer at docs.microsoft.com
@@IAmTimCorey I did! Posted on Stackoverflow, got 4 downvotes and found out it was CPP! Thank's for the template tho
Great! And how do we remove a snippet, in case we decided to change it or not use it in general?
Tnx for your help! ❤️
I think you can just delete the file
Hey, can I get help? I want to create a snippet that auto completes methods with braces, instead of pressing tab to auto complete and get `method name`, press tab to auto complete and get `method name()`. It will help me cause most of the time I just need to execute the method. Please help
I'm sorry, I don't have time to write code for you. Work the problem through and break it down into small chunks. Work each chunk. You can do it.
@@IAmTimCorey Thanks for believing in me but I asked for some help not code, do you know how I can edit the snippet that auto completes function names in intelisense?
I'll use snippets for Dapper Stored Procedures and DataTables from Stored Procedures (SqlDataAdapter).
Great!
A big thank to you Tim, can you also make a tutorial on how to create keyboard shortcuts for like Toggle comment? I personally not a big friend of ctrl + k,c,u... Thanks.
Not really. The problem is that the toggle comments isn't a snippet. It is a reactive system that comments/uncomments a variable number of lines. That is why it is a shortcut, not a snippet. A snippet is a set amount of content that you will insert at a given point. What you can do is change the keyboard shortcut for that event to better fit your process.
I made a snippet for an input box and one for logins. I'm always using input boxes.
Great!
I created a snippet for and Expression Projection pattern
Great!
Amazing video. Its posible create an ASP NET Snippet??? Its same as html?? Great work!!
Yep, you can.
Hey Tim! I'm using this to create custom snippets, and even though I've added them in, typing in the shortcut isn't showing the snippet for me. Google isn't helping too much either. Any idea why this could be happening?
Did you add it to the right location in the snippets? Did you give it a shortcut? Can you manually add the snippet?
@@IAmTimCorey I added it as per the directions in the tutorial. It does have a shortcut. Sometimes the shortcut works when I type it, other times it does not.
Hold up there's a snippet for WriteLine?
Yep. cw
You're welcome!
You safe me pains
I’m glad
#c
I expected a 5 minute video max. Do you need a phd to write snippets?. I expect to SAVE TIME by writing snippets and not to watch a 40+ minute video about snippets.
You don't need a PhD to write a snippet, but you should understand the context around writing a snippet so that you can actually use it in the real world. Context matters in development. Just learning a new trick isn't good enough. You need to know when to use it, when not to use it, how to undo it, and more. Not knowing those things will ensure that you make some bad mistakes as a developer.
Now I can stop creating methods for methods to simplify/shorten my code.
Great!
@@IAmTimCorey By the way, I think you forgot to include the Import tag. That tag includes the namespace of the code snippet when it is generated.
or just use jetbrains Rider :)
I focus primarily on free solutions because not everyone can afford to pay for a different IDE. Also, with so much built into Visual Studio, I have found that a lot of developers who like alternatives often like them for features they didn't know were also provided for free with Visual Studio.
Yeah, I get that. and yes, all jetbrains software is free for students. I also got a discount once I finished my degree.
anyway, I find visual studio is very heavy and over complecated, to the point where I prefer to pay for my IDE to do the job.
I do not work for jetbrains, just a happy customer.
By the way, nice in depth video. 😊
Snippets are weak and good for nothing. In 2020 year, it's still not possible to make a primitive snippet like this:
private $type$ $lowercaseName$;
public $type$ $uppercaseName$
{
get { return $lowercaseName$; }
set { $lowercaseName$ = value; }
}
That is incorrect. Not only is that possible, I already exists. Type propfull and tab twice. There you go.
@@IAmTimCorey Thank you for your reply. But 'prop' make only 'public int MyProperty { get; set; }'. My question: is it possible to change a first letter to uppercase from one parameter ? Or is it possible to apply string function to a parameter ? Is it possible to create second parameter from a first one?