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.

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. C#, official access to private members...

    Official access to private members to avoid Reflection calls and Expression compilations in real world C# applications.
    Please check the attachment.
    Regards from Germany
    Christian Ohle

    7 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 →
    • WPF should have the default Help "?" button in the title bar

      The help "?" button is missing in WPF.. it provides quick help functionality in many cases. It would be great if can have the help ? button like we have in Windows forms.

      7 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 warning when promoting the result of integer division to a real

        (Also applies to C++)

        I find a very common source of annoying and sometimes difficult bugs is forgetting that integer division truncates the fractional component even when the result is being promoted to a real. As a simplistic example:

        int a = 5;
        double b = a / 2;

        Mathematically one expects b=2.5 but in fact this will result in b=2.0. Of course, one can correct this by instead simply using:

        double b = a / 2.0;

        However, I wish I had a dollar for every time I forgot to do this.

        It would be really nice if this general…

        7 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 →
        • Dynamic generic calls and type conversions

          Let C# do:
          1. dynamic generic calls.
          2. dynamic type conversions.

          Example:

          public void Method(object a)
          {
          int r = ExternalGenericFunc < a.GetType() > ( // dynamic generic call.
          (a.GetType())a // dynamic type conversion.
          );
          }

          // In another DLL, in a non modifiable code:
          public int ExternalGenericFunc<T>(T data)
          {
          return ...; // do something on data.
          }

          7 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 →
          • Provide a keyword to restrict accessing a member function if the calling class does not implements specific interface in .Net (C#)

            Provide a keyword to restrict accessing a member function if the calling class does not implements specific interface in .Net (C#)

            For example:
            The class which implements IProfessor only can access IStudent.SetGrade method. If other class try to access, then Compiler should show error.

            7 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 support for Multiple parallel Console windows.

              It would be something like
              Console c = new Console();
              Console b = new Console():

              c.WriteLine("diagnostic output1");
              b.WriteLine("diagnostic output2");

              I assume they would be inherently on their own threads.

              7 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#: implement "fat arrow" lambda syntax for property getters and setters

                // For accessing this private member
                private string _sMyDesk;

                // I want to write the code as:
                public string DesktopName { get => _sMyDesk }

                // instead of:
                public string DesktopName { get { return _sMyDesk; } }

                6 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 →
                • Implement overloading for array operators in c#

                  A feature I would like to see in c# is the ability to overload operators on arrays of objects.

                  I understand this is currently possible with methods inside of classes (static or otherwise), but code would be much cleaner and more intuitive when working with join/merge/search/whatever routines that could be plugged into a logical notation. If for instance you build a class called Sweep that has a start and an end angle (zero through 2Pi) and want to do an OR operation on them, you may end up with two results:

                  public class Sweep
                  {
                  ...

                  public static Sweep[] operator…

                  6 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 →
                  • CTRL R+E Field Encapsulation at cursor position

                    Revert back to method of formatting Field Encapsulation where inserted code is on line after cursor instead of end of file. In VS2015, I now have to go to the end of the file, select, cut, and go back to my insert position an paste. Makes the advantage of automatic field encapsulation worthless.

                    6 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 →
                    • I would like to see that the C# editor and compiler get XML support.

                      I would like to see that the C# editor and compiler get something like XML support. It is very simple to integrate and extremely helpful at development time and furthermore, it allows unbelievably powerful new futures. Please check the attachment and for the case that it is interesting I could send test application and code examples.
                      (I wrote an own c# compatible Compiler for fast runtime compilations)

                      Regards from Germany
                      Christian Ohle
                      Free programmer

                      6 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 →
                      • Variant of switch that throws exception if nothing matches

                        I get sick of writing

                        default:
                        throw new ApplicationException(value.ToString());

                        at the bottom of every switch statement where I know a match should occur, but want to stop the compiler complaining about unitialised variables. I suggest something like:

                        switch checked (value) {
                        ...
                        }

                        6 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 →
                        • Object initializers support for events

                          Something like this is not possible:

                          TextBox tb = new TextBox
                          {
                          OnTextChanged += Method,
                          Text = "Sample"
                          };

                          Why Not?

                          6 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 "as" option in foreach loop definition

                            foreach( var item in SomeList as MyClass )
                            {
                            // here item is of type MyClass
                            }

                            equivalent to something like:

                            foreach( var rawItem in SomeList )
                            {
                            var item = rawItem as MyClass;
                            if( item == null ) continue;

                            // here item is of type MyClass
                            }

                            6 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 →
                            • Property Initializer

                              In addition to get{} / set {} it would be handy to have an init {} block on Properties

                              e.g. The new [CallerMemberName] allows us to call the following without hard coding the proprety names:

                              protected bool SetProperty<T>(ref T storage, T value, [CallerMemberName] String propertyName = null)
                              protected bool ValidateField([CallerMemberName]string propertyName = null) ....
                              etc.

                              where ValidateField runs any validations that have been defined for a given field:
                              eg. protected Dictionary<string, Action<string>> Validations = new Dictionary<string, Action<string>>();

                              The only hassle is that the Validations need to be defined seperate to the Property and so require the property name to be…

                              6 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 →
                              • Copy and paste Service References

                                It should be great to allow copy/paste service reference from a project to a second (for example when the refered service is down it will be very useful)

                                6 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 →
                                • Simplified XML comment tags (for less cluttered code)

                                  XML docs should support some simplified versions of commonly used comments. For example:

                                  /// <summary>
                                  /// This is a mess
                                  /// </summary>
                                  public int Mess;

                                  can be expressed in doxygen like this:

                                  /// @brief This is clear
                                  public int Clear;

                                  This makes for MUCH easier to read code and less clutter. With XML docs the tags can take up more space than the required comments! This makes code hard to read - especially since the programmer looses a lot of vertical code space.

                                  Also, for simple one line comments it would be nice to have the summary appended to the…

                                  6 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 →
                                  • Support field-targeted attributes on auto-properties

                                    I would like to see C# support using field-targeted attributes on auto-properties where the compiler applies said attribute to the generated backing field. This functionality has precedent in that the compiler already behaves like this for such attributes applied towards events:

                                    // This works in all versions of C#
                                    [field: NonSerialized]
                                    public event EventHandler SomeEvent;

                                    // This will not compile
                                    [field: NonSerialized]
                                    public string SomeProperty { get; set; }

                                    // This seems unnecessary
                                    [NonSerialized]
                                    private string _someOtherProperty;
                                    public string SomeOtherProperty {
                                    get { return _someOtherProperty; }
                                    set { _someOtherProperty = value; }
                                    }

                                    6 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 →
                                    • Make LINQ query syntax as expressive as extension method syntax

                                      LINQ query syntax lacks a lot of features that exist in extension method syntax, such as .Single(), .First(), .Distinct(), .Average(), ...

                                      I.e.:

                                      var col =
                                      from cust in customers
                                      where cust.ID == 5
                                      select first cust;

                                      6 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 →
                                      • Make MVVM easier to implement

                                        SO MUCH BOILERPLATE CODE, and need for third party tools, it's ridiculous. You need to make it dead simple to implement all aspects of MVVM, from databinding, to commanding, to navigation, and state management. I shouldn't need to add so much basic stuff for something MS is encouraging everyone to do.

                                        6 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 →
                                        • Generate warning when disposable object isn't wrapped in using()

                                          I'd like a warning to be generated when a disposable object is created, but isn't wrapped in a using statement. I'd like the compiler to warn me when I have code like:

                                          var sqlConn = new SqlConnection(...);
                                          var sqlCommand = new SqlCommand(sqlConn,...);
                                          ...
                                          var sqlReader = sqlCommand.ExecuteReader();

                                          instead of:

                                          using(var sqlConn = new SqlConnection(...))
                                          {
                                          using(var sqlCommand = new SqlCommand(sqlConn,...))
                                          {
                                          ...
                                          using(var sqlReader = sqlCommand.ExecuteReader())
                                          {
                                          ...
                                          }
                                          }
                                          }

                                          6 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 →
                                          1 2 9 11 13 27 28
                                          • Don't see your idea?

                                          Feedback and Knowledge Base