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. 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 →
      • 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 →
          • 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 →
              • Improve C# IntelliSense to open the window after a backspace should it find matches and match on case insensitive.

                Improve C# IntelliSense to open the IntelliSense window after a backspace. If you fat finger a key and lose the window the only way to get IntelliSense window back is to go back and retype the "." for those of us that heavily use IntelliSense in other languages this would go a long way.

                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 →
                • Add support for static methods in interfaces

                  I want to be able to write this interface :

                  public interface ILoadable<T>
                  {
                  static T Load(XElement data);
                  }

                  And having a class implementing it this way :

                  public class GameObject : ManagedObject, ILoadable<GameObject>
                  {
                  static public GameObject Load(XElement data)
                  {
                  ...
                  }
                  }

                  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 →
                  • 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.

                    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 →
                    • Double indentation for multiline code

                      Some code appears on more than one line, for example the inputs of "Add" are split across line 1 and 2 in (note I replaced spaces with "-" because this website removes spaces at the beginning of a line):

                      public Int32 Add(Int32 x, Int32 y, //Line 1
                      --Int32 z){//Line 2
                      --return x+y+z;//Code between the curly braces
                      }

                      When this happens, I would like Visual Studio to make the second line to use double indentation? Otherwise it becomes hard to see at a glance where the run on lines of code ends and the code inside of the curly braces begins.…

                      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 →
                      • F12 on a string generated by ResX file should jump to resx file.

                        I'm trying out VS2017 without resharper to see if I still need it. One thing I just noticed missing was that in VS2015 with Resharper. Hitting F12 on a string generated form a resx file would go to the resx file.
                        It seems in VS2017 it goes to the generated CS file requiring extra steps
                        1. Copy the name of the string
                        2. Hit sync file in solution explorer
                        3. Doubleclick Resx file (Can't figure out keyboard bindings)
                        4. Search (Ctrl+F)
                        5. Paste (Ctrl+V)
                        6. Enter

                        Now you can correct the string.

                        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 call to event that is null to optionally not throw exception

                          Allow call to event that is null to optionally not throw exception. If we could do something like:

                          public event Callback Foo();

                          public void SomeMethod()
                          {
                          Foo?(); // Does not continue call if null
                          }

                          I think this would be useful for a lot of places where a null-check is required, just like the ?. operator. It also preserves the ability to throw an exception if that it is desired.

                          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 →
                          • End of line xml comments

                            So we could write compact comments for variables and still get the incredible advantage of intellisense tooltips.
                            For example that would look like:

                            int variable; /// <info>comment for variable</info>
                            int anotherVariable; /// <info>comment for anotherVariable</info>
                            int thirdVariable; /// <info>comment for thirdVariable</info>

                            That would be so useful for long list of variables, and for enum members

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

                              It would be really useful if there was a "Quick Action Suggestion" for preventing particular runtime errors. For example, if the program contains a function that appends "hello world" to a file, Visual Studio could attempt to append an empty character to the file, in a way "mocking a write" before runtime. If Visual Studio is blocked from doing so, a yellow line could appear under the potentially error-causing code. This is pretty much like "testing the waters" for potential errors.

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

                                Seamlessly integrate the revived CSI (C# Interactive) REPL with VS Code and CoreCLR so that I can do REPL F# and C# development with the REPL and VS Code on any OS

                                4 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                • Automatically cast null when assigning to a nullable type

                                  At present, when assigning null to a nullable type variable you have to cast it as the nullable type, e.g.

                                  DateTime? nullableDate = string.IsNullOrEmpty(someDateString)
                                  ? (DateTime?)null
                                  : DateTime.Parse(someDateString);

                                  It would be nice if the cast wasn't required e.g.

                                  DateTime? nullableDate = string.IsNullOrEmpty(someDateString)
                                  ? null
                                  : DateTime.Parse(someDateString);

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

                                    please add file type to advanced search, when i want somethings in c# files why show me js file or other type,

                                    4 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Exceptions within async partial void method() cause the app domain to crash

                                      C# allows you to write code as follows...

                                      public partial class MyCodeGeneratedClass
                                      {
                                      public async Task MyCodeGeneratedMethod()
                                      {
                                      HttpClient client = new HttpClient();
                                      Console.WriteLine(await client.GetStringAsync("http://msdn.microsoft.com"));
                                      MyCustomCode();
                                      }

                                      partial void MyCustomCode();
                                      }

                                      partial class MyCodeGeneratedClass
                                      {
                                      async partial void MyCustomCode()
                                      {
                                      HttpClient client = new HttpClient();
                                      Console.WriteLine(await client.GetStringAsync("http://msdn.microsoft.com"));
                                      throw new Exception("Boom");
                                      }
                                      }

                                      Calling MyCodeGeneratedMethod in a console application, brought down the app domain.

                                      In the case of partial methods the return type must be void and you cannot have ref or out parameters. With the proliferation of async methods in libraries, this limitation is now much…

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

                                        Develop intellisense (help in writing code) for cross-platform (Java, Android, ..) in C# coding.

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

                                          I just tried out the CTP 4 of Visual Studio 2014 and tried to create a VNext Web Application.

                                          And instead of a web.config file it has a JSon file that cannot even read.

                                          Xml is so much easier to read and collapse.

                                          I won't use it because it is MVC also, but at least with a Config file I could read and edit I might use the product.

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

                                          Feedback and Knowledge Base