Visual Studio 2015

Welcome to the Visual Studio 2015 UserVoice site. This site is for suggestions and ideas for the IDE of Visual Studio (Community, Professional or Enterprise). You can also add suggestions for Team Services or Visual Studio Code. Or go to Connect to file a bug. Note that Application Insights has moved to its own UserVoice forum.

We also added an Announcements section where we will be posting special opportunities for you to participate in.

Read about current UserVoice statuses and their definitions in our article “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. 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 →
      • 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 →
        • 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 →
                          • negative check "[variable] is not [type]" like in "[variable] is [type]"

                            for convenience like in "if (variable is type)" we could also use to check the negative "if (variable is not type)"

                            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 →
                            • Language context sensitive editor hotkey

                              (see examples at last to get the idea, i justify the feature first)

                              (yeah I could use autohotkey to hack together something like this, but with Roslyn you'd think it was possible to easily just open some C# script-like file in the IDE that had callback that got called when a hotkey is pressed and current context in terms of what is around the caret, the compiler would generate this file in any language supported and then allow you to edit and recompile it in your favorite language)

                              If you know old adventure games they had following interfaces:

                              1. Zork/early…

                              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 →
                              • Enable throwing/catching of exceptions without specifing 'Exception' suffix

                                Hi,
                                I would like the c# language to allow throwing exceptions, and catching them, without specifing the 'Exception' suffix.
                                This feature is similar to attributes ('[Serializable]' instead of '[SerializableAttribute]'), and markup extensions ('{StaticResource ...}' instead of '{StaticResourceExtension ...}'.

                                Thanks!

                                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 enhance C# using/disposal pattern

                                  /*
                                  Please enhance C# using/disposal pattern

                                  Problem:
                                  Current C# using/disposal pattern have the following problems
                                  1. Code can nest too deep
                                  2. Object have to implement IDisposal
                                  as in example 1

                                  Suggest to enhance C# using/disposal pattern as in example 2
                                  1. suggested syntax is to combine using/lambda
                                  2. expected behavior - on scope exit actions are called in the reversed order
                                  */

                                  using System;

                                  // example 1
                                  namespace test_cs
                                  {
                                  class Disposable1 : IDisposable
                                  {
                                  public void Dispose() {}
                                  }

                                  class Disposable2 : IDisposable
                                  {
                                  public void Dispose() { }
                                  }

                                  class Disposable3 : IDisposable
                                  {
                                  public void Dispose()…

                                  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 →
                                  • cast structs when they are layout and type compatible

                                    Can we please have the ability to cast structs when they are layout and type compatible, so that we can more easily pass data between frameworks / libraries.

                                    I only know of two ways to do this .. construct a new struct, which is a new and full copy. And the union hack (an overlaying struct using field offsets to share the data).

                                    But I just don't see why two explicit lay-out structs (eg: Vector3 in nearly every engine, lib and application) shouldn't be castable if they are layout identical.

                                    eg:

                                    UpdatePosition(MyVector3 v)
                                    {
                                    Position = (Framework.Vector3)v;
                                    }

                                    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…)
                                      2 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                    • C#: Allow readonly fields to be modified from initialization methods

                                      To prevent replicated code in several constructors of a class it is nice to use initialization methods.
                                      But in this case, the readonly fields of the class are not allowed to be modified by the initialization method.

                                      Therefore i have to decide which technique i have to drop, readonly or initialization methods.

                                      Perhaps you can introduce an attribute [ConstructorOnlyInitializationMethod] (or named something else).
                                      Methods decorated by this attribute may modify the readonly fields and may be called just from constructors.

                                      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 →
                                      • Add multiple params arguments in methods

                                        Suppose we have a method that takes two collections of flags:

                                        public enum UserTypes
                                        {
                                        Internal = 0,
                                        External= 1,
                                        Service = 2
                                        }

                                        public enum UserActivities
                                        {
                                        Empty = 0,
                                        Download = 1,
                                        Upload = 2
                                        }

                                        public Task CreateUserTask(long userId, UserTypes[] userTypes, UserActivities[] userActivities )
                                        {
                                        ...
                                        }

                                        If I call this method, I should write:

                                        CreateUserTask(15, userTypes: new[] { UserTypes.Internal, UserTypes.Service }, userActivities: new[] { UserActivities.Upload, UserActivities.Empty });

                                        But I want to write more simply:

                                        CreateUserTask(15, userTypes: UserTypes.Internal, UserTypes.Service; userActivities: UserActivities.Upload, UserActivities.Empty );

                                        So, in general, the syntax would look like:

                                        var x = CallMethodA(dataOne: A.X, A.Y,…

                                        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 →
                                        • Add a better way to embed quotes in string literals

                                          There are two kinds of string literals in C# -- regular strings and @-strings -- and neither one provides a good way to write string literals with embedded double-quote characters.

                                          Add a way to write string literals with embedded double-quote characters with no escaping needed. Some possibilities:

                                          Single-quoted @-string:
                                          var img = @'<img src="image.png" alt="Alt text">'

                                          Multiline string, opened and closed with triple-quotes (as in Python):
                                          var img = """
                                          <img src="image.png" alt="Alt text">
                                          """;

                                          Multiline string, started with @" and ended with "@ (as in PowerShell):
                                          var img = @"<img src="image.png" alt="Alt text">"@;

                                          Multiline string with your choice of…

                                          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 24 25
                                          • Don't see your idea?

                                          Feedback and Knowledge Base