Visual Studio IDE

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

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

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

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

We look forward to hearing from you!

- The Visual Studio Team
Terms of Service and Privacy Policy

I suggest you ...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. 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).

    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 →
            • Drastically simplify the installation process

              For every other popular programming language I can think of getting ready to code is as simple as 1. Install a thing 2. Run it 3. Code. *Why* is C# such a massive headache to install?

              Simplify C# install to 'Install this *free* command line/IDE to compile c# code from a notepad/ide of your choice'. Make sure the install takes under 20 min. Call this the 'plug and play' of programming.

              My particular case; 4.5 hours of installation later, I have 149/154 Visual Studio Community edition components. VS won't start because it's incomplete, it has no automatic utility to fill…

              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 →
              • 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 →
                      • Build in a .modInverse() into the System.Numerics.BigInteger library

                        Hello Microsoft,

                        I've written my own implementation for doing modular inverses for the BigInteger class before, but as a matter of convenience I'd like to have a .modInverse(BigInteger number, BigInteger modulus) method built in like what Java has to the Systems.Numerics.BigInteger class. I think it would be helpful to have that in the standard library.

                        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 →
                        • Provide indexed properties

                          For now, we can write indexed properties only for a class like this:
                          class A {
                          public int this[int index] {...}
                          }

                          I'd really like to use properties in the following way:
                          class A {
                          public string foo[int bar] {...}
                          }

                          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 →
                          • 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 →
                            • Use green/red indicators to show build results

                              When a build is done, something like:

                              ========== Build: 3 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========

                              is displayed in the Output window.
                              Most of the time, the only item I'm really interested in is "0 failed".
                              I would love to have some more visual feedback, like a green light in case of successfull build and a red light otherwise (eventually orange if there are warnings).

                              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 →
                              • 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 →
                                  • Implicit static members for static classes

                                    Static classes cannot have non-static members. Don't require static syntax in static classes on any members to avoid tons of redundant code.

                                    Before:

                                    static class MyStaticClass
                                    {
                                    public static int One { get; set; }
                                    public static int Two { get; set; }
                                    public static int Three { get; set; }
                                    public static int Four { get; set; }

                                    static int number = 5;

                                    public static void DoSomething()
                                    {

                                    }
                                    }
                                    After:

                                    static class MyStaticClass
                                    {
                                    public int One { get; set; }
                                    public int Two { get; set; }
                                    public int Three { get; set; }
                                    public int Four…

                                    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 →
                                    • End Region indenting

                                      {c#} When #region [regionname] is created it indents good. Please add #endregion indenting.

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

                                          Feedback and Knowledge Base