Hola Amichai, maybe a benchmark extension? Sometimes I really can't tell what Copilot is doing, but I will use it if it's substantially faster or better at using memory than whatever I can come up with. So a benchmark extension would be helpful for this. (It seems like Copilot will always come up with something after I've eventually figured out how to do it 😅)
Hello Amichai! Sorry silly question, following some of your other tutorials whenever I create a c# class under a controllers file, your new class file automatically has the namespace written at the top of the file and I have to write it out, it's a little annoying but I can see that being really annoying if I start having deeper complicated architectural file systems. What's the magic i'm missing here? Again thank you so much for all your amazing videos.
Re: Roslyn compiler features / Roslynator / Auto-Usings (and maybe namespace auto completion / c# xml documentation comments) TL;DR - Put these in your settings.json: "omnisharp.enableEditorConfigSupport": true, "omnisharp.enableImportCompletion": true, "omnisharp.enableRoslynAnalyzers": true --- I'll be talking about two things: 1) C# Extension (OmniSharp) settings that take VS Code's C# editing experience from 'OK' to an 8.5, where 10 is Visual Studio. And 2) How enabling these settings *may* render Roslynator et. al. redundant. 1) OmniSharp Settings Loads of Visual Studio's C# Editing experience is provided by C#'s Roslyn compiler. Analyzers, code fixes, refactorings, application of "code styles" (formatting, naming, casing, etc). All of this can be made available in VS Code via "omnisharp.enableRoslynAnalyzers": true. The 'light bulb' will now light up with the same info and fixes as in Visual Studio, the same triple-dots-on-the-first-character suggestions/fixes, etc. As for "code styles" and error/severity levels, "omnisharp.enableEditorConfigSupport": true takes that up a notch. All of Visual Studio's code styles & severity levels are editorconfig under the hood and can be exported to an editorconfig file. By enabling omnisharp's editorconfig support, omnisharp will look for an editorconfig file and point the compiler at it, giving you the same experience as Visual Studio. IIRC just enabling it and not supplying an editorconfig file provides a better experience than leaving it disabled. Last i know of is "omnisharp.enableImportCompletion": true. 2) Possible redundant extensions * "omnisharp.enableImportCompletion": I'm sure the behavior of Auto-Usings and Import Completion is different, but PSA: OmniSharp's got an opt-in flavor. * "omnisharp.enableEditorConfigSupport": Not 'redundant' here so much as 'orthogonal': This setting applies to dotnet-specific editorconfig values that would otherwise be ignored. Google "visual studio editorconfig" or "dotnet editorconfig". Everything carries over 1:1 from Visual Studio. Some interesting stuff lives here, like auto sorting/grouping of usings. * "omnisharp.enableRoslynAnalyzers": Enabling this lights up the loads of analyzers and fixes that are being added with each .NET release. Everything Visual Studio presents, minus refactorings that would require complex user input (think parameter reordering). Roslynator has more (analyzers/fixes/refactorings) to offer - when i used them together, there were lot of redundant analyzers/fixes. Other magic happens here that may render other exensions partially or wholly redundant. Whew. It pains me to think of all the skeptics who tried out VS Code for C# and judged it based on the default settings. With OmniSharp due to be phased out, i wonder what the new VS Code + Roslyn experience will be ?
Your extension list is gold! I used vscode for about 6 months full time for c# but went back to vs pro just because it was easier and more stable. At the time I couldn’t find anything like the Roslyn extension, so I’m very excited to have another go! Vim extension ftw too btw. ;)
So, usually when my fellow developers talk to me about VSCode, all I hear is "Have you heard about our Lord and Savior, VSCode?". But you, sir, have made the most effective pitch so far to make me consider converting from my current religion, Riderism. One quick question: what's with the decorations in your terminal? What is that coming from?
Haha best comment I could get. For the terminal I followed Scott’s tutorial, you can search for “Scott Hanselman windows terminal” on TH-cam or his blog
Thats called windows terminal oh my posh extension. Note that the extension I am talking about is nor for VsCode, but it it for Windows Terminal. Full video from Scott Hanselman here. th-cam.com/video/VT2L1SXFq9U/w-d-xo.html. Once you configure your windows terminal, you can get the same effect in vs code as well
Thank you so much!! I just commented one of your tutorial videos a few days ago precisely about this and I am so glad you took the time to take us through. Your already-golden series is getting better by the week, amazing job!
Thats called windows terminal oh my posh extension. Note that the extension I am talking about is nor for VsCode, but it it for Windows Terminal. Full video from Scott Hanselman here. th-cam.com/video/VT2L1SXFq9U/w-d-xo.html. Once you configure your windows terminal, you can get the same effect in vs code as well.
Great Video! I have a question 5:00, is there a way to configure task to do a dotnet watch and attach the debugger in the same config? So I dont have to launch de watch in console and then run the attach? Just one hot reload button that debugs and watches?
Hi Amichai, Thank you very much for spending so much time to create such detailed and easy to understand videos. I really love and appreciate it. If it is okay to ask what screen annotation software do you use for your videos?
Thanks for sharing environment setup but installing an extension for every small bit is quite tedious and not favourable atleast for me. Would stick to full fledged VS instead. BTW, do you mind telling which tool yiu are using to deaw drawings onscreen while editor is open?
great video, when i do dotnet watch run then attach the debugger to it, it works but if i make changes to a file the debugger detaches, any way to solve this or another way?
When trying to debug a running process (.Net Core Attach), how do you get around the error "Unable to start debugging. Failed to attach to process: The .NET Debugger (vsdbg) has insufficient privileges to debug this process. To debug this process, vsdbg must be running with root permissions."
A lot of value for C# developers. Many thanks. Is there a way to keep the settings and installed plugins in some sort of profile that can be applied or removed at once to vscode? I‘m thinking about an easy way to switch between vscode tailored for C# development and vscode tailored for let‘s say react/node/js development. I would like to avoid adding a ton of plugins for all the projects I need to work on, as this may slow down vscode unnecessary.
Dear @Amichai Mantinband, Would you mind sharing the name of the program you've been using to draw flexible rectangles while you've been recording?. Thank you 😂
You dont need extension for autousing. It comes built in with c# extension. And the Built in one is just better. Set this in settings.json. "omnisharp.enableImportCompletion": true
Hi, I can't debug C#. It says "Unable to generate assets to build and debug. OmniSharp server is not running." I have re-installed the vscode but still behaving the same. Any idea?
Thats called windows terminal oh my posh extension. Note that the extension I am talking about is nor for VsCode, but it it for Windows Terminal. Full video from Scott Hanselman here. th-cam.com/video/VT2L1SXFq9U/w-d-xo.html. Once you configure your windows terminal, you can get the same effect in vs code as well
I am struggling to launch swaggger endpoint by default on startup of the api app through vs code. My launhsettings.json has launchurl as swagger and also using correct profile in launch.json, also tried uriFormat on serverReadyAction. My project has swagger endpoints added in code and everything works through visual studio but not in vscode. Could you please help me?
What did I miss? Drop your favorite extension so I can check it out 👇
ThunderClient
GitHistory. RemoteDevelopment
Hola Amichai, maybe a benchmark extension? Sometimes I really can't tell what Copilot is doing, but I will use it if it's substantially faster or better at using memory than whatever I can come up with. So a benchmark extension would be helpful for this. (It seems like Copilot will always come up with something after I've eventually figured out how to do it 😅)
Hello Amichai! Sorry silly question, following some of your other tutorials whenever I create a c# class under a controllers file, your new class file automatically has the namespace written at the top of the file and I have to write it out, it's a little annoying but I can see that being really annoying if I start having deeper complicated architectural file systems.
What's the magic i'm missing here? Again thank you so much for all your amazing videos.
What about automatic intellisence, like implement interface, add to the constructor...?
Re: Roslyn compiler features / Roslynator / Auto-Usings (and maybe namespace auto completion / c# xml documentation comments)
TL;DR - Put these in your settings.json:
"omnisharp.enableEditorConfigSupport": true,
"omnisharp.enableImportCompletion": true,
"omnisharp.enableRoslynAnalyzers": true
---
I'll be talking about two things: 1) C# Extension (OmniSharp) settings that take VS Code's C# editing experience from 'OK' to an 8.5, where 10 is Visual Studio. And 2) How enabling these settings *may* render Roslynator et. al. redundant.
1) OmniSharp Settings
Loads of Visual Studio's C# Editing experience is provided by C#'s Roslyn compiler. Analyzers, code fixes, refactorings, application of "code styles" (formatting, naming, casing, etc). All of this can be made available in VS Code via "omnisharp.enableRoslynAnalyzers": true. The 'light bulb' will now light up with the same info and fixes as in Visual Studio, the same triple-dots-on-the-first-character suggestions/fixes, etc.
As for "code styles" and error/severity levels, "omnisharp.enableEditorConfigSupport": true takes that up a notch. All of Visual Studio's code styles & severity levels are editorconfig under the hood and can be exported to an editorconfig file. By enabling omnisharp's editorconfig support, omnisharp will look for an editorconfig file and point the compiler at it, giving you the same experience as Visual Studio. IIRC just enabling it and not supplying an editorconfig file provides a better experience than leaving it disabled.
Last i know of is "omnisharp.enableImportCompletion": true.
2) Possible redundant extensions
* "omnisharp.enableImportCompletion": I'm sure the behavior of Auto-Usings and Import Completion is different, but PSA: OmniSharp's got an opt-in flavor.
* "omnisharp.enableEditorConfigSupport": Not 'redundant' here so much as 'orthogonal': This setting applies to dotnet-specific editorconfig values that would otherwise be ignored. Google "visual studio editorconfig" or "dotnet editorconfig". Everything carries over 1:1 from Visual Studio. Some interesting stuff lives here, like auto sorting/grouping of usings.
* "omnisharp.enableRoslynAnalyzers": Enabling this lights up the loads of analyzers and fixes that are being added with each .NET release. Everything Visual Studio presents, minus refactorings that would require complex user input (think parameter reordering). Roslynator has more (analyzers/fixes/refactorings) to offer - when i used them together, there were lot of redundant analyzers/fixes. Other magic happens here that may render other exensions partially or wholly redundant.
Whew. It pains me to think of all the skeptics who tried out VS Code for C# and judged it based on the default settings. With OmniSharp due to be phased out, i wonder what the new VS Code + Roslyn experience will be ?
Thanks for adding this, McNerdius. Would definitely recommend going through the settings of the various extensions, especially the C# extension.
wow!!!
Your extension list is gold! I used vscode for about 6 months full time for c# but went back to vs pro just because it was easier and more stable. At the time I couldn’t find anything like the Roslyn extension, so I’m very excited to have another go! Vim extension ftw too btw. ;)
I'm also interested to see how you made the styled terminal
@amantinband 100% i actually tuned in just to see the styled terminal configuration but learned a few things along the way
So, usually when my fellow developers talk to me about VSCode, all I hear is "Have you heard about our Lord and Savior, VSCode?". But you, sir, have made the most effective pitch so far to make me consider converting from my current religion, Riderism. One quick question: what's with the decorations in your terminal? What is that coming from?
I believe it is the one found on Scott Hanselman's channel: th-cam.com/video/FC-gLkYWXLw/w-d-xo.html
Haha best comment I could get. For the terminal I followed Scott’s tutorial, you can search for “Scott Hanselman windows terminal” on TH-cam or his blog
I expect the terminal prompt is done with Oh My Posh.
Thats called windows terminal oh my posh extension. Note that the extension I am talking about is nor for VsCode, but it it for Windows Terminal. Full video from Scott Hanselman here.
th-cam.com/video/VT2L1SXFq9U/w-d-xo.html.
Once you configure your windows terminal, you can get the same effect in vs code as well
Thank you so much!! I just commented one of your tutorial videos a few days ago precisely about this and I am so glad you took the time to take us through. Your already-golden series is getting better by the week, amazing job!
Really great to hear. Thanks, Ama!
Hello Thanks for videos.
Silly question
How did you make colored terminal ?
Hi Amichai, I like the content.
can you please share how to style the fancy terminal?
Thank you for this video. Now I'm 100% ready for the course 🙂
C# Namespace Autocompletion is what I missed the most 😀
Hi Paryk,
So what about automatic intellisense, like implement interface, and so on...?
Thank you so much!
It's really great extensions
Is there some extension for terminal to make it look like your?
Thats called windows terminal oh my posh extension. Note that the extension I am talking about is nor for VsCode, but it it for Windows Terminal. Full video from Scott Hanselman here.
th-cam.com/video/VT2L1SXFq9U/w-d-xo.html.
Once you configure your windows terminal, you can get the same effect in vs code as well.
I'm following your videos all along. This is very interesting and useful Amichai. Thanks for sharing. 👍
Nice, now when we know all, let's continue 😀. Thank for the video, it will help everyone who follow the episodes.
Great Video! I have a question 5:00, is there a way to configure task to do a dotnet watch and attach the debugger in the same config? So I dont have to launch de watch in console and then run the attach? Just one hot reload button that debugs and watches?
Hi Amichai, Thank you very much for spending so much time to create such detailed and easy to understand videos. I really love and appreciate it. If it is okay to ask what screen annotation software do you use for your videos?
you are the cult i am joining, sir. thank you for the awesome content 😎
Need some videos on working with httpclient and blazor. Need some more guidance there, handling errors etc
Great video, but I think you forgot about the Docker extension
Thanks for sharing environment setup but installing an extension for every small bit is quite tedious and not favourable atleast for me. Would stick to full fledged VS instead.
BTW, do you mind telling which tool yiu are using to deaw drawings onscreen while editor is open?
Can you make a comparison of the features of vscode vs jetbrains rider?
Really great content. Thank's for sharing!
My main concern is that majority of good themes are dark. But I prefer to use a light one
what tool you are using to draw (square and arrow ) in the screen during the recording ?
Very useful for vs code extension thank you so much need more other videos please
Thank you. This was much needed...
great video, when i do dotnet watch run then attach the debugger to it, it works but if i make changes to a file the debugger detaches, any way to solve this or another way?
Hi Amichai Mantinband, how to setup UI terminal like this video.
Thanks
Another great tutorial! Thnxz man!
When trying to debug a running process (.Net Core Attach), how do you get around the error "Unable to start debugging. Failed to attach to process: The .NET Debugger (vsdbg) has insufficient privileges to debug this process. To debug this process, vsdbg must be running with root permissions."
A lot of value for C# developers. Many thanks. Is there a way to keep the settings and installed plugins in some sort of profile that can be applied or removed at once to vscode? I‘m thinking about an easy way to switch between vscode tailored for C# development and vscode tailored for let‘s say react/node/js development. I would like to avoid adding a ton of plugins for all the projects I need to work on, as this may slow down vscode unnecessary.
There is actually an extension that allows creating extension profiles 😆 You can find it by searching for extension profiles
is there a free extension for unit test's code coverage?
Dear @Amichai Mantinband, Would you mind sharing the name of the program you've been using to draw flexible rectangles while you've been recording?. Thank you 😂
It's called ZoomIt from Sysinternals
Hi, can you share settings for console prompt, is it Oh My Posh?
You dont need extension for autousing. It comes built in with c# extension. And the Built in one is just better.
Set this in settings.json. "omnisharp.enableImportCompletion": true
Fantastic! Thank you so much.
Hi, I can't debug C#. It says "Unable to generate assets to build and debug. OmniSharp server is not running." I have re-installed the vscode but still behaving the same. Any idea?
Awesome!
How do you get those colors in the Terminal? It looks really cool
Oh My Posh.
thanks for the video
Hi I would like to know how can I profile .net application in macbook some free tools or vscode extensions
thank you
Hey, what is the extension of your terminal?
What is clicking the dot button at the end in GitHub?
Legend!
That was awesome, thank you alot.
How did you say you open the github repo in VSCode online? You said you click the doc? The dot? What? Where? How?
Ah got it. Had to google a bit.
Is your VS Code Cult membership still open🙈?
Btw amazing video as always
I already have some merch ideas 😁
How did you make those red boxes when selecting an area with your mouse pointer on the screen?
Using an application called ZoomIt. I originally saw Scott Hanselman using it, you can find a few videos of him talking about it here on TH-cam
@@amantinband Thanks, grateful 🙏
How to share all configurations & extensions with a team.
Thanks, dude.
Hello Sir, How integrate WinForms (UI) in VS Code?
thanks bro
why use vs code when you have visual studio community edition ?
What the application you use to draw the shape when presentation?
ZoomIt
Can you provide us the link for the markdown file VSCodePlayground ?
I'd guess it's available to his patreons only.
whats the command to change the mappings to jump to explorer and terminal ?
Jump to explorer- View: Show Explorer
Jump to editor - View: Focus First Editor Group
Jump to terminal- View: Toggle Terminal
C# XML Documentation Comments is no longer needed since it's included in OmniSharp already.
Talk about moving very fast, I could hardly cope trying to do the same things
Would you have preferred it a little slower?
Yes a little slower
especially like rest client at 20:00
One of my favorite extensions 🤓
How to customize VS Code terminal like yours?
Thats called windows terminal oh my posh extension. Note that the extension I am talking about is nor for VsCode, but it it for Windows Terminal. Full video from Scott Hanselman here.
th-cam.com/video/VT2L1SXFq9U/w-d-xo.html.
Once you configure your windows terminal, you can get the same effect in vs code as well
@@aaryavartsolutions5359 thank you. That video is really helpful.
`VSCode Neovim
` extension is much better than `Vim`, because its not emulating vim, so it is much faster
Hmm I'll have to check it. If it's better I'll have to convert 🤔
why not use Visual Studio?
I am struggling to launch swaggger endpoint by default on startup of the api app through vs code. My launhsettings.json has launchurl as swagger and also using correct profile in launch.json, also tried uriFormat on serverReadyAction. My project has swagger endpoints added in code and everything works through visual studio but not in vscode. Could you please help me?
Great content, Thank you!
Amazing video, thank youu!
Amazing video! Thank you!