Visual Studio 2015

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. 

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. Support "interface" constraint in generics

    A new constraint for generics allowing to limit the type parameter to an interface type only:

    public class MyClass<T> : T, where T : interface
    {
    // ...
    }

    4 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      2 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
    • Make using threads natural in C#

      Threading needs to simplified further and made a natural part of the language. Instead of having to create a Task or Thread objects to run code on a new thread, could it not be simplified to something like:
      MyMethod(args) on new thread;
      or
      MyMethod(args) on new thread new_thread_object;
      or
      MyMethod(args) on thread existing_thread_object;

      Using the first option, you lose the thread object, but this could be handy running a process on a form to keep the form responsive.
      Using the last option, we could use that to run a method on a form to update controls without have to jump…

      4 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
      • "IF(Min < x < Max)" instead of "IF(Min < x & x < Max & Min < Max)"

        It makes the code more readable and clean.

        Maybe there is a way to combine OR-statements too:
        "IF(A | B == x)" instead of "IF (A == x | B == x)"

        4 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
        • Current Index in foreach loop

          Add current index in foreach loop. Current implementation is like

          int index;
          foreach (Object o in collection)
          {
          index = collection.indexOf(o);
          }

          Or we can have extension method or LINQ to get the current index in loop,

          Following implementation would be great

          foreach (Object o in collection, index)
          {
          var idx = this.index;
          }

          4 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            2 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
          • Allow to embed picture files (jpeg, png,..) inside c# source files

            Sometimes it would be helpful to add some graphics, images/sketch to the source code to explain the program context/behavior or the algorithm behind.
            The image should be shown just in the editor window with the possibility to fold it away.

            3 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
            • nameof for multiple members

              In c# 6
              string name = nameof(Property); // name = "Property"
              string[] names = { nameof(Property1), nameof(Property2), nameof(Property3), nameof(Property4) }; // names = Array of names
              I suggest to support the following syntax:
              string[] names = nameof(Property1, Property2, Property3, Property4); // names = Array of names

              3 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
              • Enabling intellisense creation of Concrete classes out of defined interfaces.

                Having an interface defined, have an option on the context menu when right-clicking on the interface definition name to create a class that implements the interface.

                3 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                • TextBox1 For use with URL's improvements

                  when another page is navigated to, the updating of the text in texbox1,

                  3 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                  • Bring back "Committed by typing the following characters" intellisense option for C#

                    This was a very handy feature in previous versions of Visual Studio. Now I have to press escape every time I don't want the suggestion to commit, which is not only frustrating but also slows me down.

                    I run into this frequently while typing a type name that hasn't been referenced by a "using" in the file yet.

                    3 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                    • Support for partial type inference with generics

                      I would like to write methods like:

                      public T2 MyMethod<T1, T2>(Func<T1, T2> func) {}

                      And call them like:

                      MyMethod<MyType1>(myType => myType.MyMethod2());

                      I don't have to specify the type of T2 since it is inferred from the return type of the method called in the expression.

                      3 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                      • C# stop autocomplete of the keyword "new" with "object"

                        99% of the time all we want are dynamic classes and we have to go back and delete the word "object"

                        3 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                        • Show static/shared members with different icons

                          Within the solution explorer, when exploring through a file's type definitions and their members, instance members and static members use the same icons. All methods use the same purple box, all fields use the same blue block, etc. As with the access modifiers, adding a small indicator to each member's icon for static/shared members would help identify relevant information. This could match the "S" shown on type definitions in their MSDN articles, but any other type of indicator would work.

                          3 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                          • Be able to define a method such that its return value should be used

                            It seems that more programmers are using immutable types/collections with methods that accept the types and return a modified copy of it.
                            Sometimes the user of the code might forget that the method returns the modified value and use it like a method that changes its parameters.

                            I think it would be a good idea to tell the compiler that "the method is meaningless if you don't assign its return value to something" and then errors/warning tell the programmer that they've misused the method.

                            3 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                            • allow var keyword in place of the datatype for readonly properties

                              allow var keyword in place of the datatype for readonly properties. The var keyword has done a lot to clean up variable declarations in c#.

                              Here is an example:
                              var text = new System.Text.StringBuilder();
                              vs.
                              System.Text.StringBuilder text = new System.Text.StringBuilder();

                              However, this cannot be done with a readonly property:
                              public readonly System.Text.StringBuilder Text = new System.Text.StringBuilder();
                              vs.
                              public readonly var Text = new System.Text.StringBuilder();
                              (this second option is not allowed, but should be!!!)

                              As both a c# developer and a vb.net developer, I have to say that this is one of those areas that vb.net is a lot less verbose…

                              3 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                              • Visual C# - Auto-organize "using" directives when formatting a C# file.

                                This is kind of like how Eclipse IDE does it with Java "import" directives. When you format a Java file, the "import" directives will be sorted in the order of namespace names.

                                Basically, when formatting a C# file, the "using" directives can be set to be re-organized/sort in alphabetical list, or in categories.

                                That is all.

                                3 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                • Switch ranking of matches when searching with "CamelHumps" in NavigateTo

                                  When using "CamelHumps" e.g. searching for FooBarBaz class by entering FBB in the NavigateTo (Ctrl+,) box, the matches for the camel humps are ranked lower than character matches (e.g. FbbClass). Since the camel hump style search only works if you enter in CAPS, it certainly seems like any camel hump matches should be ranked first in the results.

                                  For the longest time, I didn't even realize camel hump searching even work in VS (I actually started writing an extension to add it) because of the poor ranking in the results.

                                  3 votes
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Allow Ternary and Null Coalescing operators to return values

                                    If I want to shortcut my method to return null whenever my object A.B.C is null, I would have to write:

                                    if(A?.B?.C == null) {
                                    return null;
                                    }

                                    The shorthand A?.B?.C ?? return null; would improve the readability of the code and provide a great shorthand.

                                    Note that this isn't equivalent to return A?.B?.C as I want the method to continue execution if the value isn't null. Throwing a ArgumentException would behave in the same manner.

                                    3 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Please! Release all necessary tools for coding C# in other platforms and OSs

                                      In my opinion, C# is the best object oriented programming language and has a lot of tools. As many people believe" C# is JAVA, but designed very better.", I think if everybody, on any platform and OS, has access to code with standard C#, just like windows, this language would be one of the most used programming language in world. There are some tools like mono, but native tools, even not in the way of open source software, are very better and more useful.

                                      Even I see in my developer friends, they use variety of OSs and programming languages, but…

                                      3 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                      • bitfields

                                        Bitfields are necessary for formatting and parsing binary files, Ethernet packet data, etc. where fields are packed and do not have a standard length (not 8, 16, 32 bits, etc.). Right now you HAVE to write code to do this. In C++ you just follow a member variable with a colon and its length, in bits. (Of course, then packing should work down to the bit level as well)

                                        3 votes
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                        • C# local (nested) methods: They work great in Pascal, and are sorely missed in C#.

                                          The ability to nest methods within other methods was a terrific feature in Pascal, and I really hate that they are not part of C#. They are a perfect way to isolate small bits of code that perform a single function without cluttering up the entire class. There does not seem to be any downside that I can see.

                                          3 votes
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                          1 2 9 11 13 25 26
                                          • Don't see your idea?

                                          Feedback and Knowledge Base