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. 

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. 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 →
    • inner keyword for getters and setters

      private string _name;
      public string Name
      {
      get
      {
      return _name;
      }
      set
      {
      _name = value;
      }
      }

      This private member used merely for the public property itself could be handled by a context related keyword, like "inner"

      public string Name
      {
      get
      {
      return inner;
      }
      set
      {
      inner = value;
      }
      }

      Just using { get; set; } is not allways sufficient. With INotifyPropertyChanged, you will have lots of boilerplate code otherwise.

      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 →
      • Allow await operator in non-async methods

        I'd like of a simple syntax sugar for semantics purposes:

        void SyncMethod()
        {
        await AsyncMethod();
        }

        That would be equivalent to:
        void SyncMethod()
        {
        AsyncMethod().Wait();
        }

        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 →
        • Please support CocosSharp and dont abandone like XNA

          Why is CocosSharp abandond? is this the next XNA project hacked?

          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 →
          • traceof special word

            One of biggest problems in computer programming is determining when a variable changes its value.
            The typical problem is: “When X is changed so…” or “Before X is changed…”.
            This is the main problem in bindings scenarios but also in a lot of other cases.

            We can separate problem in two main problem:

            1) When X is changed?
            2) When A.B.C.D.E.X is changed?

            At the moment the solution require to define a lot of redundant code.
            Typically we must define an XProperty closely related to X property. If we want to trace A.B.C.D.E.X we must define the same pattern for…

            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…)
              3 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
            • property auto-initializer

              When declaring member properties with auto initializers, have the compiler be smart about the type of the property.

              e.g.

              public MyCustomClass<string> MyString { get; set; } = new; // compiler knows it is MyCustomClass<string>, so automatically adds/calls default constructor

              or allow inferred definitions

              public class MyClass
              {
              var MyString {get; set;} = "hello world"; // property type inferred from auto-initializer
              }

              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 →
              • WPF grid column height definition shorthand

                With almost every grid I write, I have to also specify the column and row definitions. I would like a quicker way to do this so that I can get on with my job instead of typing boiler plate code over and over again.

                Instead of this:

                <Grid Margin="3">
                <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2.0*" />
                <ColumnDefinition Width="3.0*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
                <RowDefinition Height="1.0*" />
                <RowDefinition Height="auto" />
                </Grid.RowDefinitions>
                </Grid>

                I would much rather just type this:

                <Grid ColumnDefinitions="2.0*,3.0*" RowDefinitions="auto,auto,1.0*,auto" Margin="3">
                </Grid>

                Thanks for your time.

                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 →
                • Extend operator overloading

                  I suggest making unary and binary operators overloadable using extensions.

                  Example:

                  static class Extensions
                  {
                  IVector operator + (this IVector left, IVector right);
                  IVector operator * (this IVector left, IVector right);
                  }

                  It will make possible to write
                  a + b * c
                  instead of
                  a.Add(b.Multiply(c));

                  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 →
                  • When you're implementing an interface, carry over the comments

                    When I create an interface, and add comments to the method signatures, then implement the interface, the comments don't carry over

                    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 →
                    • T should be castable to ValueTask<T>

                      T should be castable to ValueTask<T>
                      as it were in the early bits.
                      public static implicit operator ValueTask<TResult>(TResult result) => new ValueTask<TResult>(result);

                      this will enable much nicer API when working with delegate that return ValueTask<T> for synchronous flow.

                      for example: the following method
                      Task CallPetentialAsync(Func<ValueTask<int>> f)

                      can be called as follow
                      await CallPetentialAsync(() => 42);

                      instead of
                      await CallPetentialAsync(() => new ValueTask<int>(42));

                      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 access modifiers in interface

                        I think we need a posibility to add access modifier to interface method or property so we will be able to write something like

                        interface ITest
                        {
                        string Name { get; private set; }

                        private void DoSomething();
                        }

                        Even if it is not possible with methods, it is possible with properties, i am sure

                        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 →
                        • Keyword "With"

                          with(SomeClass someClassInstance = /* Get from somewhere */)
                          {
                          // Some work
                          }
                          with(SomeClass someClassInstance = /* Get from somewhere */)
                          {
                          // Some work
                          }

                          instead of

                          {
                          SomeClass someClassInstance = /* Get from somewhere */;
                          /* Some work */
                          }
                          {
                          SomeClass someClassInstance = /* Get from somewhere */;
                          /* Some work */
                          }

                          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 →
                          • 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;
                            }

                            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 →
                            • Implement Python-like Array Slice Capability

                              Languages like Python make it very easy to access elements in an array using slice notation.

                              For example, consider this array:

                              int[] myArray = {1, 2, 3, 4, 5, 6, 7, 8};
                              Console.WriteLine(myArray[2]); //outputs "3"

                              Accessing individual elements is straightforward with the indexer notation. However, to access multiple elements within the array is more complicated. To access the indexes 2 and 3 as a shallow copy of the array, I would have to:

                              myArray.Skip(2).Take(2);

                              In a language like Python, I can simply state:

                              myArray[2:4] //which starts at index 2, and goes until index 4 but doesn't include it.

                              The Python-like…

                              5 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" in declaration of properties in C# classes

                                For example this declaration:
                                private AudioPlayer audioLocal = new AudioPlayer();

                                would be easier to read if it allowed this as well:
                                private var audioLocal = new AudioPlayer();

                                and the compiler should be able to deduce the type just like it does for a local variable. It would allow cleaner and easier to read code, less "plumbing".

                                5 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 →
                                • Treat out parameters as part of returning tuple

                                  Have a look at example in MSDN:

                                  static void Method(out int i, out string s1, out string s2)
                                  {
                                  i = 44;
                                  s1 = "I've been returned";
                                  s2 = null;
                                  }

                                  static void Main()
                                  {
                                  int value;
                                  string str1, str2;
                                  Method(out value, out str1, out str2);
                                  }

                                  It may be turned into:

                                  (var value, var str1, var str2) = Method();

                                  5 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 →
                                  • Shorthand to execute method in foreach loop

                                    Introduce the new syntax *. to C# that can be used like

                                    someEnumerable*.SomeMethod();

                                    which is shorthand for

                                    foreach ( var someItem in someEnumerable )
                                    someItem.SomeMethod();

                                    This is like the ForEach method but better!

                                    5 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 statement should automatically coerce nullable booleans produced by use of ?. in condition expression

                                      Now I have to do this:

                                      if (_Client?.Connected == true)
                                      {
                                      _Client.Disconnect();
                                      _Client = null;
                                      }

                                      This would be better:

                                      if (_Client?.Connected)
                                      {
                                      _Client.Disconnect();
                                      _Client = null;
                                      }

                                      Can the compiler recognize that a bool is required instead of a null because of the if-statement? Now I have to add "== true".

                                      5 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 →
                                      • Razor formatting is really bad

                                        I dread the moment I paste something in my cshtml page... and all the indentation gets screwed up!

                                        5 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 →
                                        • Create method stub at cursor's position

                                          After you select the class/method from the dropdowns in the navigation bar, the method stub is appended at the end of the current file ( (A) in the attached picture).
                                          I wish this could be changed, e.g., the code will be placed at the current position of the cursor ( (B) in the attached picture).

                                          5 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 8 10 12 33 34
                                          • Don't see your idea?

                                          Feedback and Knowledge Base