Visual Studio IDE

We’d like your suggestions and ideas to help us continuously improve future releases of Visual Studio, so we’ve partnered with UserVoice, a third-party service, to collect your feedback. Please do not send any novel or patentable ideas, copyrighted materials, samples or demos for which you do not want to grant a license to Microsoft.

This site is for feature suggestions; if you need to file a bug, you can visit our Developer Community website to get started.

Note: your use of the portal and your submission is subject to the UserVoice Terms of Service & Privacy Policy and license terms.

We look forward to hearing from you!
- The Visual Studio Team

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# falls to #8 most popular language in 2018 Stack Overflow survey

    C# has fallen from #4 in the 2017 survey to #8 in the 2018 Stack Overflow survey

    112 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      12 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
    • Windows Forms Designer Errors

      The windows forms designer in Visual Studio still has a lot of critical bugs that need to be fixed.

      One in particular that I encounter on an hourly basis is:
      GenericArguments[0], 'ServiceDefinition...IMyObject', on 'Client...BaseForm`2[TService,TImplementation]' violates the contraint of type parameter 'TService'.

      Here is the call stack:
      at System.RuntimeTypeHandle.Instantiate(RuntimeTypeHandle handle, IntPtr* pInst, Int32 numGenericArgs, ObjectHandleOnStack type)
      at System.RuntimeTypeHandle.Instantiate(Type[] inst)
      at System.RuntimeType.MakeGenericType(Type[] instantiation)

      The error occurs whenever I change something on the base forms and recompile the project. The only way to get the designer running again is to restart the whole project which takes between 2 and 5 minutes currently. It's…

      24 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
      • Add new feature to System.String like Typescript

        We can write c# code like follows:
        string name = "Tom";
        string hello = $"Hello {name}!";
        string path = @"D:\images\a.png";

        Sometimes we want to keep complicated string fromat like Json string, It's very inconvenient. We must write like this:
        string json = "{\"name\":\"Tom\"}";
        json = @"{""name"":""Tom""}";

        But in Typescript, it's very easy:
        content: string = `{"name":"Tom"}`;

        So I want to add this feature to c#/.Net.

        14 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
        • Dictionary get item lambda

          Dictionary<string, T> some = new Dictionary<string, T>();
          var tmp = some["some_key"]?.SomeField ?? string.Empty;

          15 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
          • The ability to generate a class diagram from code in Visual Studio for Mac

            Like the feature for the VS2017 windows version where you can generate a class diagram from code, but then for the Mac version as well

            105 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
            • Add static indexers

              Altough there was this comment on the very same proposal: "Thanks for taking the time to share this suggestion. This item has been around for a couple of versions of Visual Studio and we haven’t acted on it. Looking at the VS “15” plans, we’re not going to take action on this item, so we’re going to close it. If the suggestion is still relevant, please either take a look to see if there’s another suggestion that’s similar that you can vote on, or open a new suggestion."

              I do suggest the very same thing: static indexers.

              Currently, indexers need…

              3 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
              • Make it mandotory to Handle Exceptions...

                Hello,
                I am Computer Engineer from Turkey. Graduated From Istanbul Technical University In 2015.
                I was Intern at Microsoft Turkey in 2012 and worked at Sony Turkey, Siemens, Asseco SEE..

                My suggestion is make Exception Handling or changing signature mandatory..
                For example, if I throw an Exception in my method, I must decleare that this method may throws an Exception so a user can see the type of exceptions that can be thrown from this method.

                This is the case in JAVA.
                Example:
                public void getName() throws NullPointerException, IOException{
                }
                if I use getName() method in anywhere, compiler tells me…

                4 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                • Refactoring to add a parameter to existing method

                  When I type a method call with an extra parameter, the refactoring tools allow me to create a new overload of the method as shown in the screenshot below.

                  It would be nice if another refactoring could be added that would simply add the additional parameter to the existing method, instead of creating a whole new overload.

                  4 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                  • Create or Update the template, ASP.Net Core + Angular

                    Currently we can use the template, ASP.Net Core 2.1 + Angular5.

                    When Angular is updated 6 from 5, change many files in framework.
                    So, we can't build ASP.Net Core 2.1 + Angular 6 without executiong ng migration update command and rewriting json files. Or get old Angular-Cli and their dependences.

                    Pls. Create new Template for ASP.NET Core + Angular6 ., or Updating the Template.

                    2 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                    • is goo idea to use visual studio help?

                      is good idea to use visual studio help?

                      1 vote
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                      • Automatically remove unused classes, methods, properties, assembly references from final app/exe

                        I wish that the C# compiler would automatically remove (strip out) unused classes, methods, properties, and assembly references from final app/exe (when compiled for Release not Debug).

                        If you use a large class library in an app, but for example the app uses only 20% of the library, then the entire library is included in the final app/exe anyway. I wish that the final compiled app/exe contained only the classes that are truly used in the app, not the entire contents of every class library that I reference in an app.

                        In a rare case where you need to stop…

                        1 vote
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                        • 能不能给项目一个排序的功能,按建立时间排序等等,感觉项目建的多了比较乱

                          我是使用Vs2017练习编程代码的学生,一般会在一个解决方案下面建立很多个项目,能不能给项目一个排序的功能,按建立时间排序等等,感觉项目建的多了比较乱,不舒服

                          1 vote
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                          • Allow Conditional attribute also to non void methods

                            Currently it's possible to use
                            [Conditional("CONDITION")]
                            only with void function. So we have to use #if with non void function to get a default value.
                            Please, extend the attribute in order to return a specified default value or null for reference type.

                            1 vote
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                            • You make it easier to run a program

                              It would be so much easier if you just had a run button.

                              1 vote
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                              • Use of unassigned local variable

                                If a Boolean is guarding both the initialization and use of a local variable, VS should attempt to recognize that. There are other similar circumstances that have been introduced to VS recently.

                                This actually leads to improved code. Forcing a var to be initialized even when it ultimately won't be used ends up blocking VS's ability to alert the developer when the var really is being used when it shouldn't.

                                Example:

                                public int Test(bool flag)
                                {
                                int value;
                                if (flag) value = 0;
                                int result = 0;
                                if (flag) result = value + 1;
                                return result;
                                }

                                "value" should not…

                                1 vote
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                • Fallthrough keyword inside switch statement

                                  switch (0)
                                  {
                                  case 0: Console.WriteLine("Case: 0"); fallthrough;
                                  case 1: Console.WriteLine("Case: 1");
                                  case 2: Console.WriteLine("Case: 2");
                                  default: Console.WriteLine("Case: default");
                                  }

                                  /*Output:
                                  Case: 0
                                  Case: 1
                                  */

                                  The use of [goto label;] easily creates code spaghetti, whereas [break;] after each [case:] is merely syntactic sugar. Because the [fallthrough;] keyword is directly preceding the next [case:], the incidence of unintentional fallthroughs is much lower. To move a [case:] with a [fallthrough;] one can use [goto label;]. However, the need to change [fallthrough;] to [goto label;] will prompt refactoring.

                                  1 vote
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    1 comment  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                  • make it easier

                                    please I suck at this

                                    3 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                    • allow properties for out and ref parameters

                                      Allow properties in ref and out parameters.

                                      Example:

                                      public MyNumber { get; set; }

                                      public void MyTest()
                                      {
                                      Increase(ref MyNumber);
                                      }

                                      private void Increase(ref int number)
                                      {
                                      number++;
                                      }

                                      1 vote
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Make it easier to develop "Hello World"

                                        The standard install should include everything someone needs to develop a "Hello World" app with ease.

                                        1 vote
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                        • 單元測試, 可否顯示錯誤的行數?

                                          顯示:
                                          Message: Assert.AreEqual 失敗。 預期: <268>。實際: <0>。

                                          Assert.AreEqual(x1, 0);
                                          Assert.AreEqual(x2, 0);
                                          ...
                                          可否顯示錯誤的行數, 讓使用者知道x2這一行錯誤

                                          1 vote
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 45 46
                                          • Don't see your idea?

                                          Feedback and Knowledge Base