Argument completion made easy with Visual Studio IntelliCode

Mark Wilson-Thomas

Visual Studio IntelliCode saves you time by putting what you’re most likely to use at the top of your completion list. IntelliCode recommendations are based on thousands of open source projects on GitHub, each with over 100 stars. When combined with the context of your code, the completion list is tailored to promote common practices. As a result, instead of having to search and scroll through sorted lists, you get suggestions on the most likely ones for your coding context as you type.

Now we’re making selecting the right arguments easier too!

What does it do?

IntelliCode now makes recommendations for arguments in your C# code. Just install the latest release of the IntelliCode extension for Visual Studio and start editing C# code. It’s a simple as that!

When you enter an argument, you’ll notice the familiar starred IntelliCode recommendations appear when you’re typing. If you want to see a suggested argument without even typing a single character, you can also invoke IntelliSense directly with Ctrl+Space.

Parameter completion, showing a recommendation from IntelliCode

Your feedback matters

We hope you enjoy this new feature – if you have more suggestions and feedback about it or other parts of IntelliCode, we’d love to hear from you. Get in touch and let us know more.

18 comments

Discussion is closed. Login to edit/delete existing comments.

  • Sam Larko 0

    Is VB supported?  This would be great for C# devs like me that are working on a VB app that can’t be converted per client demands.

    • Mark Wilson-ThomasMicrosoft employee 0

      Hi Sam.

      Thanks for your feedback. At present, IntelliCode does not support VB. We continue to look at which languages we’ll add in future, and you can register your support for VB on our GitHub Issues at https://github.com/MicrosoftDocs/intellicode/issues/34

      Regards

      Mark

       

  • P Kevin 0

    why not support autocomplete function “()”?

    • Mark Wilson-ThomasMicrosoft employee 0

      Hi P Kevin

      Thanks for the feedback.

      I’d like to make sure I’m clear on what you’re asking: are you suggesting that we should trigger autocompletion when you type open brace, so you don’t need to press Ctrl+Space to bring up the argument completion list? That’s something we could potentially consider as an optional behavior. Or is it something else?

      I’d be happy to chat in person – drop me an email mwthomas at microsoft dot com.

      Thanks

      Mark

       

      • Lukas Fellechner 0

        Yes, please allow us to enable auto completion on brace open! Argument completion works really good for what I see, and I’d like it to come up as soon as a method (with parameters) is called.
        C++ intellisense has lots of advanced options, which allow specifying this (among a lot of other things). But in C# there is only a poor amount of options for IntelliSense. Now that we have IntelliCode, it is even more important to better customize when/how stuff appears for C# as well.

        • Lukas Fellechner 0

          I have noticed that suggestions already come up at brace open, if the first parameter is a enum. But now with IntelliCode, this should be enhanced to always come up (at least optionally).One more suggestion I have: For boolean, it would be great if “true” and “false” are always suggested. They are heavily used but currently not recommened or preferred in any way. We have a lot of classes with “tracer” field. Now if I type “tr” on a bool parameter, tracer gets selected. For boolean parameters, true/false should always be preferred over other (non-boolen) fields or variables.

          • Mark Wilson-ThomasMicrosoft employee 0

            Thanks for your feedback Lukas, it is much appreciated. I’ll take this up with the team.

            Mark

  • Brilliant Mbumwae 0

    I guess the focus was on C#, this makes me feel left out. It’s in my opinion that let the update also be made available to VB.NET. Folks like are practicing Vb.net whilst learning C#. Don’t leave us behind. 

    • Mark Wilson-ThomasMicrosoft employee 0

      Hi Brilliant

      Argument Completion IntelliCode is a preview experimental feature at this point. Once we’ve had chance to take feedback and ensure it’s meeting expectations, we’ll look at potential to broaden it to other languages beyond C#. 

      Thanks

      Mark

    • SuperCocoLoco . 0

      +1

  • Науменко Роман Борисович 0

    It would be greate if Ctrl+Space would also invoke a parameters info popup.

    • Mark Wilson-ThomasMicrosoft employee 0

      Thanks for the feedback Науменко. I will pass it on to the right folks as this is a general feature of IntelliSense.

      If you’re editing along a line of code and your caret enters the braces because you just typed left brace, the parameter quick info popup should already be there when you hit ctrl+space, and remain when you’ve pressed Ctrl+Space. However if you place the caret into the braces from somewhere else, and hit Ctrl+Space, right now it doesn’t show the parameter quick info – I’m assuming that’s the case you are talking about?

      Again, thanks for taking the time to raise this.

      Mark

      • Науменко Роман Борисович 0

        …when you’ve pressed Ctrl+Space. However if you place the caret into the braces from somewhere else, and hit Ctrl+Space, right now it doesn’t show the parameter quick info
        Yes, this is exactly what I was talking about. Thank you for forwarding it to the right folks.

    • Wil Wilder Apaza Bustamante 0

      This comment has been deleted.

  • Tim Chen 0

    Ctrl + Space is an input method toggle shortcut key, which can cause its work to fail.
    Ctrl + Space是输入法切换快捷键,这会造成它的工作失效。

Feedback usabilla icon