Visual Studio IDE

Welcome to the Visual Studio UserVoice site. Let us know what you would like to see in future versions of the Visual Studio suite of products. This site is for suggestions and ideas. If you need to file a bug, you can visit our Developer Community website to get started. 

NOTE: The Applications Insights forum has moved to the Azure feedback site.

For suggestions for improvements to other developer products, see these sites:

To review the current UserVoice statuses and their definitions, please review our “What Does the Status of My Feedback Mean?” article.

We look forward to hearing from you!

- The Visual Studio Team
Terms of Service and Privacy Policy

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# falls to #8 most popular language in 2018 Stack Overflow survey

    C# has fallen from #4 in the 2017 survey to #8 in the 2018 Stack Overflow survey

    35 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
    • Ranged Data Types In C#

      I suggest to improve current numeric types by adding a way to set a value range. This can be done by some attributes, but it will be easier to give it a syntax like this
      C#:
      [5,10]int i;
      VB.NET:
      Dim i As Integer[5,10]
      The compiler must not allow I to have any value < 5 or >10.
      One can omit one limit:
      [,100]byte
      [13,]int
      This will make it easy to write auto-properties like this:
      C#:
      [18,30]int Age {get; set;};
      VB.NET:
      Property Age As Integer[18,30]

      Another Syntax Suggestion:
      C#:
      <5,10>int i;
      VB.NET:
      Dim i As Integer<5,10>

      36 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        6 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
      • The ability to generate a class diagram from code in Visual Studio for Mac

        Like the feature for the VS2017 windows version where you can generate a class diagram from code, but then for the Mac version as well

        33 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 →
        • 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 →
          • 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 →
                • Add the "isnt" keyword

                  Simple suggestion, please add a new keyword: "isnt"

                  This would make code clearer and more readable. So rather than

                  if (!(myObject is ClassType)) { ... }

                  you would write

                  if (myObject isnt ClassType) { ... }

                  Looks clearer and provides a positive match rather than a negative match.

                  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 →
                      • Ternary for a method call and not only for a return value

                        I would like to see this idea imlplemented if possilbe, as I actually typed it in twice so far thinking it would work but I found that it is wrong.

                        Currently, ternary returns a value that should be captured by a variable.

                        var x = y? z1 : z2;

                        What I would like to do is

                        y? Z1() : Z2();

                        instead of

                        if (y)
                        {
                        Z1();
                        }
                        else
                        {
                        Z2();
                        }

                        Or maybe even

                        y? return z1 : return z2;

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

                              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 →
                              • C# Interactive NuGet Support

                                Would be nice to get the NuGet package support added in C# Interactive. Heard there was work going on for F#.

                                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 →
                                • Add option to disable highlighting of syntax errors

                                  In C# in VS 2015, there is no option to completely turn off highlighting of syntax errors. I suggest adding one.
                                  (Having syntax highlighting becomes particularly annoying when writing a section of code that is heavily concerned with program logic; having the red sqiggles yelling at you is very annoying when you're trying to think carefully about how something has to be done.)

                                  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 →
                                  • Update C# language with an 'IN' function similar to SQL

                                    We have many situations where a variable needs to be checked against multiple possibilities but where a switch statement is inappropriate. Example:
                                    if( (x == 0 || x == 5) && ( y == 0 || y == 1 || y == 2) )
                                    {
                                    }
                                    If would be awesome to be able to say:
                                    if(x IN (0,5) && y IN (0,1,2) )
                                    {
                                    }
                                    especially useful if we need to come back and add more possibilities later on and still have readable code.

                                    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 →
                                    • In a textbox ability to move cursor to first line visible in a scrolled multi line textbox

                                      When reloading data to the text box that has been search and replaced, I want the new data to be presented back in the textbox at the same position. textBox1.GetFirstCharIndexOfCurrentLine(); only gets the current line where the caret is active and then I can only scroll the text to make this at the top and so the position of the text has changed

                                      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 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…

                                        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 →
                                        • Access the automatic property hide field

                                          Adding a specific keyword allows automatic property access to automatically generated fields.
                                          example:
                                          using Autofac;
                                          public static class EasyResolutionExtensions
                                          {
                                          public static TService ResolveSet<TService>(this IComponentContext context, ref TService service) where TService : class
                                          {
                                          return service ?? (service = context.Resolve<TService>());
                                          }
                                          }
                                          public class MyClass
                                          {
                                          private readonly ILifetimeScope _scope;
                                          private MyClassOne One => _scope.ResolveSet(ref field);
                                          private MyClassOne Two => _scope.ResolveSet(ref field);
                                          public MyClass(ILifetimeScope scope)
                                          {
                                          _scope = scope;
                                          }
                                          }

                                          public class MyClassOne
                                          {
                                          }
                                          public class MyClassTwo
                                          {
                                          }

                                          31 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 →
                                          ← Previous 1 3 4 5 42 43
                                          • Don't see your idea?

                                          Feedback and Knowledge Base