Visual Studio Code for .NET

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

КОМЕНТАРІ • 100

  • @amantinband
    @amantinband  2 роки тому +7

    What did I miss? Drop your favorite extension so I can check it out 👇

    • @nanvlad
      @nanvlad 2 роки тому

      ThunderClient

    • @pilotboba
      @pilotboba 2 роки тому +1

      GitHistory. RemoteDevelopment

    • @LouisWaweru
      @LouisWaweru 2 роки тому

      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 😅)

    • @rory6315
      @rory6315 2 роки тому

      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.

    • @alhassenbrini7649
      @alhassenbrini7649 2 роки тому

      What about automatic intellisence, like implement interface, add to the constructor...?

  • @GeronaXxYT
    @GeronaXxYT 8 днів тому

    I was watching your API playlist and then wondering how you can just simply move between split editors. Then suddenly this video pop-ups into my recommendations. Amazing stuff!

  • @jameskelly99
    @jameskelly99 2 роки тому +3

    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. ;)

  • @aaronprohaska4117
    @aaronprohaska4117 Рік тому +6

    I'm also interested to see how you made the styled terminal

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

      @amantinband 100% i actually tuned in just to see the styled terminal configuration but learned a few things along the way

  • @amaama4554
    @amaama4554 2 роки тому +1

    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!

    • @amantinband
      @amantinband  2 роки тому

      Really great to hear. Thanks, Ama!

  • @McNerdius
    @McNerdius 2 роки тому +14

    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 ?

    • @amantinband
      @amantinband  2 роки тому

      Thanks for adding this, McNerdius. Would definitely recommend going through the settings of the various extensions, especially the C# extension.

    • @andreloty
      @andreloty 2 роки тому

      wow!!!

  • @raman465
    @raman465 2 роки тому +6

    Hello Thanks for videos.
    Silly question
    How did you make colored terminal ?

  • @kmcdo
    @kmcdo 2 роки тому +9

    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?

    • @1eyewonder27
      @1eyewonder27 2 роки тому

      I believe it is the one found on Scott Hanselman's channel: ua-cam.com/video/FC-gLkYWXLw/v-deo.html

    • @amantinband
      @amantinband  2 роки тому +6

      Haha best comment I could get. For the terminal I followed Scott’s tutorial, you can search for “Scott Hanselman windows terminal” on UA-cam or his blog

    • @pilotboba
      @pilotboba 2 роки тому +3

      I expect the terminal prompt is done with Oh My Posh.

    • @aaryavartsolutions5359
      @aaryavartsolutions5359 2 роки тому

      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.
      ua-cam.com/video/VT2L1SXFq9U/v-deo.html.
      Once you configure your windows terminal, you can get the same effect in vs code as well

  • @chiu-minglam630
    @chiu-minglam630 Рік тому

    you are the cult i am joining, sir. thank you for the awesome content 😎

  • @adiscivgin
    @adiscivgin 2 роки тому

    Nice, now when we know all, let's continue 😀. Thank for the video, it will help everyone who follow the episodes.

  • @VIBA_Moments
    @VIBA_Moments 2 роки тому

    I'm following your videos all along. This is very interesting and useful Amichai. Thanks for sharing. 👍

  • @patrykk.4630
    @patrykk.4630 2 роки тому

    Thank you for this video. Now I'm 100% ready for the course 🙂
    C# Namespace Autocompletion is what I missed the most 😀

    • @alhassenbrini7649
      @alhassenbrini7649 2 роки тому

      Hi Paryk,
      So what about automatic intellisense, like implement interface, and so on...?

  • @ehudpinhas8873
    @ehudpinhas8873 2 роки тому +2

    Hi Amichai, I like the content.
    can you please share how to style the fancy terminal?

  • @NitinVarmaManthena
    @NitinVarmaManthena Рік тому

    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?

  • @GerardoBuenrostro
    @GerardoBuenrostro 2 роки тому +1

    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?

  • @oleksandrbelen9903
    @oleksandrbelen9903 2 роки тому +3

    Thank you so much!
    It's really great extensions
    Is there some extension for terminal to make it look like your?

    • @aaryavartsolutions5359
      @aaryavartsolutions5359 2 роки тому

      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.
      ua-cam.com/video/VT2L1SXFq9U/v-deo.html.
      Once you configure your windows terminal, you can get the same effect in vs code as well.

  • @prabhakarant542
    @prabhakarant542 2 роки тому

    Very useful for vs code extension thank you so much need more other videos please

  • @nove1398
    @nove1398 2 роки тому

    Need some videos on working with httpclient and blazor. Need some more guidance there, handling errors etc

  • @evertonbrzozowyalves1775
    @evertonbrzozowyalves1775 2 роки тому

    Really great content. Thank's for sharing!

  • @injypal
    @injypal 2 роки тому

    Thank you. This was much needed...

  • @MkYentertainment
    @MkYentertainment Рік тому

    Can you make a comparison of the features of vscode vs jetbrains rider?

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

    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?

  • @kenjiobara
    @kenjiobara Рік тому

    what tool you are using to draw (square and arrow ) in the screen during the recording ?

  • @lindermannla
    @lindermannla 2 роки тому

    Another great tutorial! Thnxz man!

  • @microtech2448
    @microtech2448 Рік тому

    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?

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

    Hi I would like to know how can I profile .net application in macbook some free tools or vscode extensions

  • @djscratchnsniff
    @djscratchnsniff Рік тому

    thanks for the video

  • @niklu4038
    @niklu4038 Рік тому

    Awesome!

  • @ahmedmostafa-zu5kr
    @ahmedmostafa-zu5kr 10 місяців тому

    is there a free extension for unit test's code coverage?

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

    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."

  • @khanhlinhnguyenpham2140
    @khanhlinhnguyenpham2140 Рік тому

    Hi Amichai Mantinband, how to setup UI terminal like this video.
    Thanks

  • @adriano.digiere
    @adriano.digiere 2 роки тому

    Fantastic! Thank you so much.

  • @Дима-г9х6п
    @Дима-г9х6п 2 роки тому

    Great video, but I think you forgot about the Docker extension

  • @nivaldobrasil
    @nivaldobrasil 2 роки тому +1

    thank you

  • @georgehomorozeanu
    @georgehomorozeanu 2 роки тому

    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.

    • @amantinband
      @amantinband  2 роки тому +4

      There is actually an extension that allows creating extension profiles 😆 You can find it by searching for extension profiles

  • @mynamemysurname3504
    @mynamemysurname3504 2 роки тому

    Hi, can you share settings for console prompt, is it Oh My Posh?

  • @SpeedyMechnic
    @SpeedyMechnic 2 роки тому

    What is clicking the dot button at the end in GitHub?

  • @ugochukwuumerie6378
    @ugochukwuumerie6378 2 роки тому

    Legend!

  • @abhishekbagchi6052
    @abhishekbagchi6052 2 роки тому

    Is your VS Code Cult membership still open🙈?
    Btw amazing video as always

    • @amantinband
      @amantinband  2 роки тому +1

      I already have some merch ideas 😁

  • @mouradaissani8957
    @mouradaissani8957 2 роки тому

    That was awesome, thank you alot.

  • @ThePonderi
    @ThePonderi 2 роки тому

    Thanks, dude.

  • @henrik3098
    @henrik3098 Рік тому

    thanks bro

  • @phyuphyu7965
    @phyuphyu7965 2 роки тому

    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?

  • @rustam_gasymov
    @rustam_gasymov Рік тому

    Hey, what is the extension of your terminal?

  • @ugochukwuumerie6378
    @ugochukwuumerie6378 2 роки тому

    How did you make those red boxes when selecting an area with your mouse pointer on the screen?

    • @amantinband
      @amantinband  2 роки тому +1

      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 UA-cam

    • @ugochukwuumerie6378
      @ugochukwuumerie6378 2 роки тому

      @@amantinband Thanks, grateful 🙏

  • @slashd
    @slashd 2 роки тому

    How do you get those colors in the Terminal? It looks really cool

  • @mdsafikulislam7430
    @mdsafikulislam7430 2 роки тому

    Hello Sir, How integrate WinForms (UI) in VS Code?

  • @yatsuk
    @yatsuk 2 роки тому +2

    My main concern is that majority of good themes are dark. But I prefer to use a light one

  • @kenjiobara
    @kenjiobara Рік тому

    why use vs code when you have visual studio community edition ?

  • @iosaroj
    @iosaroj 2 роки тому

    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?

  • @tiagocandeias3969
    @tiagocandeias3969 2 роки тому

    whats the command to change the mappings to jump to explorer and terminal ?

    • @amantinband
      @amantinband  2 роки тому +2

      Jump to explorer- View: Show Explorer
      Jump to editor - View: Focus First Editor Group
      Jump to terminal- View: Toggle Terminal

  • @TienNguyen-rg1gc
    @TienNguyen-rg1gc 2 роки тому

    What the application you use to draw the shape when presentation?

  • @MrBan001
    @MrBan001 2 роки тому

    How to share all configurations & extensions with a team.

  • @huylu3332
    @huylu3332 2 роки тому

    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 😂

    • @HrFessor
      @HrFessor 2 роки тому

      It's called ZoomIt from Sysinternals

  • @johnnybigoo
    @johnnybigoo 2 роки тому

    Can you provide us the link for the markdown file VSCodePlayground ?

    • @krccmsitp2884
      @krccmsitp2884 2 роки тому +1

      I'd guess it's available to his patreons only.

  • @pilotboba
    @pilotboba 2 роки тому

    How did you say you open the github repo in VSCode online? You said you click the doc? The dot? What? Where? How?

    • @pilotboba
      @pilotboba 2 роки тому

      Ah got it. Had to google a bit.

  • @kisan_thapa
    @kisan_thapa 2 роки тому

    How to customize VS Code terminal like yours?

    • @aaryavartsolutions5359
      @aaryavartsolutions5359 2 роки тому +1

      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.
      ua-cam.com/video/VT2L1SXFq9U/v-deo.html.
      Once you configure your windows terminal, you can get the same effect in vs code as well

    • @kisan_thapa
      @kisan_thapa 2 роки тому

      @@aaryavartsolutions5359 thank you. That video is really helpful.

  • @upcsatx
    @upcsatx 2 роки тому

    especially like rest client at 20:00

    • @amantinband
      @amantinband  2 роки тому

      One of my favorite extensions 🤓

  • @S3Kglitches
    @S3Kglitches 2 роки тому

    why not use Visual Studio?

  • @krccmsitp2884
    @krccmsitp2884 2 роки тому

    C# XML Documentation Comments is no longer needed since it's included in OmniSharp already.

  • @zimcoder
    @zimcoder 2 роки тому +1

    Talk about moving very fast, I could hardly cope trying to do the same things

    • @amantinband
      @amantinband  2 роки тому

      Would you have preferred it a little slower?

    • @zimcoder
      @zimcoder 2 роки тому

      Yes a little slower

  • @damianfijoek2037
    @damianfijoek2037 2 роки тому

    `VSCode Neovim
    ` extension is much better than `Vim`, because its not emulating vim, so it is much faster

    • @amantinband
      @amantinband  2 роки тому

      Hmm I'll have to check it. If it's better I'll have to convert 🤔

  • @zhh174
    @zhh174 2 роки тому +2

    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

  • @bilal-elmursi
    @bilal-elmursi 2 роки тому

    Great content, Thank you!

  • @amirhosseinghasemi8644
    @amirhosseinghasemi8644 2 роки тому

    Amazing video, thank youu!

  • @lifeisbeautifu1
    @lifeisbeautifu1 Рік тому

    Amazing video! Thank you!