Visual Studio IDE

Announcement: This forum has been migrated to provide our customers one convenient and responsive system for all feedback. You can now suggest new ideas, browse and vote on existing ideas in the Visual Studio Developer Community. To learn more about the migration to Visual Studio Developer Community please check out the release blog post.

We’d like your suggestions and ideas to help us continuously improve future releases of Visual Studio, so we’ve partnered with UserVoice, a third-party service, to collect your feedback. Please do not send any novel or patentable ideas, copyrighted materials, samples or demos for which you do not want to grant a license to Microsoft.

This site is for feature suggestions; if you need to file a bug, you can visit our Developer Community website to get started.

Note: your use of the portal and your submission is subject to the UserVoice Terms of Service & Privacy Policy and license terms.

We look forward to hearing from you!
- The Visual Studio Team

I suggest you ...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. C# Interactive Debug Support

    Hope to get debugging support in C# Interactive. One of the PMs mentioned it was on the map a few releases back, but have not seen any updates lately.

    6 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
    • Allow abstract interfaces

      Be able to force an interface to be inherited by sub-interfaces. The base or parent interface cannot directly be implemented by a class; only a sub-interface can be implented.

      e.g.
      public abstract interface IBaseInterface { ... } // cannot be implemented
      public interface ISubInterfaceA { ... } // can be implemented
      public interface ISubInterfaceB { ... } // can be implemented

      And therefore
      public abstract class BaseClass { ... } // base class
      public class SubClassA : BaseClass, IBaseInterface { ... } // PREVENT THIS FROM COMPILING - mixes concrete class with abstract interface
      public class SubClassA : BaseClass, ISubInterfaceA…

      3 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
      • Greatly increase support for GPU programming in C#

        -Support GPU programming in C# -both general and graphical- on at least equal level with C++. On every Microsoft platform.
        -Design the future versions (or successor) of DirectX with C# in mind.

        2,308 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          33 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
        • Add methods to clone an object tree or a part of it

          Creating objects similar to others already existing is a common pattern that requires a lot of typing and bore just to map the properties of one into the other.
          There should exist an extension method on the "object" object that could allow to create an object just cloning another one, with it's entere tree, or even better, until a determinate level of depth.

          0 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
          • c#

            Na minha opinião acho que seria melhor quando nos instalamos uma referencia uma .dll quando instalar ou executar o programa em outro
            computador que não tenha o git hub ou algo que precise ser instalado para o programa funcionar invés de aparecer uma mensagem de erro direcionar com link para instalar o que falta o computador ficaria mais fácil de descobrir o que necessita para o programa funcionar corretamente em outro computador sou iniciante ainda e as mensagens de erro que aparecem no computador novo a ser executado nao são muito claras para mim.
            Obrigado!

            1 vote
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
            • Allow user to modify HTTP Accept and User Agent headers when using UriImageSource with caching

              This is regarding using the compiler for Xamarin Cross-development in C#. For me to use avail myself of the downloaded image caching (UriImageSource) from the site I frequently download images, I would need to modify 2 HTTP header fields : User Agent and Accept. The header fields both have static information either identifying the app/Version and the acceptable returned data format. It would be very useful to allow the program to request these changes prior to the page appearing.

              1 vote
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
              • Customize icons in the Class View / Object Browser

                Right now there's basically three icons in the Class View/Object Browser: the Blue Icon, the Purple Icon, and the Beige Icon. ^^

                Well, it's true that when you look closer, you can notice some differences in the shape. The enum icon shape is different from the class icon one or from the folder icon one. However, you need to look closer to see it. It's not something that strikes you in a quick look, and that makes navigating those views less useful.

                I would say that a good usability test would be to blur the icons, and yet to be…

                1 vote
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                • Syntactic solution so derived class doesn't accidentally call an XML Serialisation base-class null constructor.

                  There is a conflict between XML serialisation, which needs a null constructor, and clean design of inheritance in the case when you don't want a null constructor. A derived class can end up calling the base-class null constructor unintentionally.

                  "public DerivedClass(<some parameters>)"
                  gets compiled as
                  "public DerivedClass(<some parameters>) : BaseClass()"
                  and not
                  "public DerivedClass(<some parameters>) : BaseClass(<some parameters>)"

                  Two ideas for a syntactic solution:

                  1. enforce calling of a parameterised base-class constructor from a derived-class parameterised constructor. Maybe declare the derived class as "public class DerivedClass : [homogeneous]BaseClass" where the [homogeneous] tag means DerivedClass constructors can only call base class…

                  4 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    2 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                  • Method autocompletion should insert () on parameter-less method, should insert ; on void return type

                    I noticed this slightly different behaviour to resharper, but saving a lot of key strokes and time over the day.

                    If I have:
                    class A {
                    void Foo();
                    string Bar();
                    }

                    And I am using this class:
                    var a = new A();

                    upon typing "a." I get autocompletion menu with Foo and Bar methods.

                    Upon selecting either of them, following gets populated:
                    "a.Foo"

                    But both Foo and Bar don't have params, so 100% of the time, I need to type "()".
                    For Foo I would also type ";", getting "a.Foo();".

                    My suggestion is, that for parameter-less methods, "()" should be…

                    7 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                    • Create a case expression

                      Add an expression syntax of the type:
                      var a = <select symbol> (expression)
                      {
                      <case symbol> <constant>: <expression>;
                      <case symbol> <constant>: <expression>;
                      }
                      Where a is assigned the expression result associated selected case. Of course every case expression would need to evaluate to the same type.

                      I believe this syntax would be more elegant than:
                      int a;
                      select (b)
                      {
                      case "One":
                      a = 1;
                      break;
                      case "Two":
                      a = 2;
                      break;
                      }

                      1 vote
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                      • StringAssert.Equals should throw an exception just like Assert.Equals.

                        Right now it resolves to Object.Equals. However it looks a lot like string.Equals, which compares strings instead of identities.
                        Of course i got this when reading the manual, but it would still prevent confusion to make StringAssert.Equals behave like Assert.Equals instead of like Object.Equals.

                        1 vote
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                        • abstract inhertaible enums

                          Example;

                          public abstract enum AnimalType; //acts as a Base Class & interface

                          public enum CatType : AnimalType
                          {
                          Burmese,
                          Siamese,
                          Tabby,
                          ...
                          }

                          public enum DogType : AnimalType
                          {
                          Alsatian,
                          Beagle,
                          ...
                          }

                          Then use this Abstract enum as a Generic Type Constraint.

                          This then allows a family of enums to be created and avoids use of non-matching enums.

                          e.g.
                          public abstract class BaseClass<TAnimalEnum>
                          where TAnimalEnum : AnimalEnum
                          {
                          // do animal stuff
                          }

                          then
                          public class CatClass : BaseClass<CatEnum>
                          {
                          // do cat stuff
                          ...
                          }

                          3 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                          • Type safety in actions defined using lambda functions

                            There's a small problem when it comes to actions defined through lambda functions. I'm showing it in the screencap.

                            Let's say we have two methods: HellowWorld(), which returns a string, and DoNothing(), which doesn't return anything. There's no type safety problems when we use them through anonymous methods: Actions only accept anonymous methods that doesn't return any a value, while Func<string> only accept anonymous methods that return a string.

                            Now let's use lambda functions. No problem here with Func<string>: when the lambda function doesn't return a string, it shows an error, which it's OK.

                            The problem appears when you declare…

                            1 vote
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                            • aiiiiiiudaaaaaaaa!!!!

                              llamen a la polisiA!!

                              1 vote
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                              • Add the ability to convert the use of "var" to the expanded declaration:

                                Add the ability to convert the use of "var" to the expanded declaration:

                                var i = 5;

                                hovering over i, intellisense tells us this is an int. Please add the ability to convert the "var" to it's expanded declared type (i.e int in this example).

                                1 vote
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                • Automatic string null coallesce with if

                                  Rather than

                                  if (str != null) { ... }

                                  simply:

                                  if (str) { ... }

                                  Like C++

                                  1 vote
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                  • LINQ to SQL: Error Reporting Via Generated SQL With 0 = 1 Clause

                                    LINQ to SQL error reporting is currently implemented by generating random SQL with a clause 0 = 1 (usually in a WHERE statement.)
                                    My understanding is this typically happens when there's an out of sync between the definition of a class in LINQ vs the actual entity in SQL.

                                    I believe Microsoft's intentions were to return no results in this case, but the following issues arise by this implementation:

                                    1) This is unintuitive to the developer, since generally no actual error occurs, just a change in the results being returned. The change in results being returned, could coincidentally be the…

                                    3 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Allow trailing commas in method calls, same as in initializers

                                      For instance, I can say

                                      var foo = new Foo { Prop1="hello", Prop2="world, }

                                      but I can't say

                                      foo.DoStuff(arg1: "hello", arg2: "world",);

                                      I'd like to be able to do that since it makes it easier to maintain the code when I'm adding and removing arguments.

                                      1 vote
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Implement community language ideas more quickly - or open-source C#

                                        You cannot seriously ignore top ideas for a decade - but that is what is happening.

                                        Is it any wonder C# is beginning to slip down the rankings of top languages?

                                        It's a wonderful language, but it's being suffocated with bureaucratic controls. Other languages are marching ahead.

                                        Set it free, or lose it.

                                        1 vote
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Remove unnecessary references

                                          it would be interesting to remove unnecessary references automatically

                                          1 vote
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →

                                          Feedback and Knowledge Base