Visual Studio Code for .NET

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2024

ความคิดเห็น • 99

  • @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...?

  • @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!!!

  • @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 4 หลายเดือนก่อน

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

  • @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: th-cam.com/video/FC-gLkYWXLw/w-d-xo.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 TH-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.
      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

  • @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!

  • @raman465
    @raman465 2 ปีที่แล้ว +6

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

  • @ehudpinhas8873
    @ehudpinhas8873 ปีที่แล้ว +2

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

  • @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...?

  • @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.
      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.

  • @VIBA_Moments
    @VIBA_Moments 2 ปีที่แล้ว

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

  • @adiscivgin
    @adiscivgin 2 ปีที่แล้ว

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

  • @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?

  • @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?

  • @chiu-minglam630
    @chiu-minglam630 ปีที่แล้ว

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

  • @nove1398
    @nove1398 2 ปีที่แล้ว

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

  • @Дима-г9х6п
    @Дима-г9х6п 2 ปีที่แล้ว

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

  • @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?

  • @MkYentertainment
    @MkYentertainment 9 หลายเดือนก่อน

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

  • @evertonbrzozowyalves1775
    @evertonbrzozowyalves1775 2 ปีที่แล้ว

    Really great content. Thank's for sharing!

  • @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 10 หลายเดือนก่อน

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

  • @prabhakarant542
    @prabhakarant542 2 ปีที่แล้ว

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

  • @injypal
    @injypal 2 ปีที่แล้ว

    Thank you. This was much needed...

  • @rariboys8366
    @rariboys8366 6 หลายเดือนก่อน

    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?

  • @khanhlinhnguyenpham2140
    @khanhlinhnguyenpham2140 ปีที่แล้ว

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

  • @lindermannla
    @lindermannla 2 ปีที่แล้ว

    Another great tutorial! Thnxz man!

  • @luisvillarreal3790
    @luisvillarreal3790 7 หลายเดือนก่อน

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

  • @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

  • @ahmedmostafa-zu5kr
    @ahmedmostafa-zu5kr 7 หลายเดือนก่อน

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

  • @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

  • @mynamemysurname3504
    @mynamemysurname3504 ปีที่แล้ว

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

  • @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

  • @adriano.digiere
    @adriano.digiere 2 ปีที่แล้ว

    Fantastic! Thank you so much.

  • @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?

  • @niklu4038
    @niklu4038 ปีที่แล้ว

    Awesome!

  • @slashd
    @slashd 2 ปีที่แล้ว

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

    • @pilotboba
      @pilotboba 2 ปีที่แล้ว +1

      Oh My Posh.

  • @riccarrasquilla379
    @riccarrasquilla379 10 หลายเดือนก่อน

    thanks for the video

  • @arbellaio
    @arbellaio 7 หลายเดือนก่อน

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

  • @nivaldobrasil
    @nivaldobrasil 2 ปีที่แล้ว +1

    thank you

  • @rustam_gasymov
    @rustam_gasymov ปีที่แล้ว

    Hey, what is the extension of your terminal?

  • @SpeedyMechnic
    @SpeedyMechnic 2 ปีที่แล้ว

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

  • @ugochukwuumerie6378
    @ugochukwuumerie6378 2 ปีที่แล้ว

    Legend!

  • @mouradaissani8957
    @mouradaissani8957 2 ปีที่แล้ว

    That was awesome, thank you alot.

  • @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.

  • @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 😁

  • @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 TH-cam

    • @ugochukwuumerie6378
      @ugochukwuumerie6378 2 ปีที่แล้ว

      @@amantinband Thanks, grateful 🙏

  • @MrBan001
    @MrBan001 ปีที่แล้ว

    How to share all configurations & extensions with a team.

  • @ThePonderi
    @ThePonderi 2 ปีที่แล้ว

    Thanks, dude.

  • @mdsafikulislam7430
    @mdsafikulislam7430 2 ปีที่แล้ว

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

  • @henrik3098
    @henrik3098 ปีที่แล้ว

    thanks bro

  • @kenjiobara
    @kenjiobara 10 หลายเดือนก่อน

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

  • @TienNguyen-rg1gc
    @TienNguyen-rg1gc 2 ปีที่แล้ว

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

  • @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.

  • @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

  • @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

  • @upcsatx
    @upcsatx 2 ปีที่แล้ว

    especially like rest client at 20:00

    • @amantinband
      @amantinband  2 ปีที่แล้ว

      One of my favorite extensions 🤓

  • @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.
      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

    • @kisan_thapa
      @kisan_thapa 2 ปีที่แล้ว

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

  • @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 🤔

  • @S3Kglitches
    @S3Kglitches 2 ปีที่แล้ว

    why not use Visual Studio?

  • @iosaroj
    @iosaroj ปีที่แล้ว

    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?

  • @bilal-elmursi
    @bilal-elmursi 2 ปีที่แล้ว

    Great content, Thank you!

  • @amirhosseinghasemi8644
    @amirhosseinghasemi8644 2 ปีที่แล้ว

    Amazing video, thank youu!

  • @lifeisbeautifu1
    @lifeisbeautifu1 ปีที่แล้ว

    Amazing video! Thank you!