Visual Studio IDE

Announcement: This forum has been migrated to provide our customers one convenient and responsive system for all feedback. You can now suggest new ideas, browse and vote on existing ideas in the Visual Studio Developer Community. To learn more about the migration to Visual Studio Developer Community please check out the release blog post.

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. 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 →
      • Copyable type names in method signature tooltips

        When a method signature is shown in a tooltip (for example when entering parameters for a method), allow the user to select and copy type names from the tooltip. This would be useful for pre-assigning values to parameters that have long type names.

        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 →
        • Inline If syntax

          Say you have a variable---

          var myVar = null;

          C# will throw an error. You must initialize implicitly typed variables, and you cannot assign null to an implicitly typed variable.

          But if you say---

          var myVar = ( myCond ? "simple string result" : null );

          and you step through the code, you can add a watch, force the cond to evaluate to false, and the conditional assigns null to the implicit variable.

          Am I missing a nuance here? Should this be possible? Is this a bug or a feature?

          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 →
          • Block Attributes

            Can we have a syntax where we could group commonly used Attributes, like this:
            [Required]
            {
            public string One { get; set; }
            public string Two { get; set; }
            public string Three { get; set; }
            }

            instead of writing:
            [Required]
            public string One { get; set; }
            [Required]
            public string Two { get; set; }
            [Required]
            public string Three { get; set; }

            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 →
            • fullnameof() - a variation of nameof()

              Id like to see a variation of nameof() named fullnameof() to shorten code such as this:
              ModelState.AddModelError($"{nameof(model.WorkInstruction)}.{nameof(model.WorkInstruction.ReasonCodeID)}", "The Reason Code field is required.");

              to:
              ModelState.AddModelError($"{fullnameof(model.WorkInstruction.ReasonCodeID)}", "The Reason Code field is required.");

              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 classes to access their nested classes private members

                IGlobalDockElement : IToolDisplay, IDockablePanel

                Imagine the following:

                class A
                {
                private int foo;

                public class B
                {
                private A owner;
                private int bar;

                public B (A ownerA) { this.owner = ownerA; }

                public int Add () { return this.owner.foo + this.owner.bar; }
                }
                }

                Currently, in c#, an instance of B could access foo, as seen in Add method:

                A owner = new A();
                A.B nested = new A.B(owner);
                nested.Add(); <-- this function access private A member foo

                However, the reverse is *not* possible, an instance of A can not access a private member from an instance of B.

                I…

                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 →
                • Restrict the public access level to only specific classes

                  This could count as well for class, properties , constructor or methods.
                  Like in C++ we have the friend reserved word we could have something similar that would allow public members or objects to be accessible only to specific class. The objects that would have access could be a parameter of the reserved word:

                  public( <class name>[, <class name 2>]* )

                  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 →
                  • Create or Update the template, ASP.Net Core + Angular

                    This suggestion is migrated to Developer Community. Please use below link to view the current status.
                    https://developercommunity.visualstudio.com/content/idea/351722/create-or-update-the-template-aspnet-core-angular.html
                    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 →
                      • 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 →
                        • Add new feature to System.String like Typescript

                          This suggestion is migrated to Developer Community. Please use below link to view the current status.
                          https://developercommunity.visualstudio.com/content/idea/351721/add-new-feature-to-systemstring-like-typescript.html
                          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 →
                          • python extension.

                            Code will be written in python wih the help of an extension.

                            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 →
                            • 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 →
                              • add "<-" operator for TaskCompletionSource.SetResult

                                old way: ((TaskCompletionSource)x).SetResult(value)
                                new way: x <- value

                                would be cool to have a new short operator to set the async result.

                                #region ego.MODEL <- android.os.Build.MODEL;
                                //ego.MODEL = android.os.Build.MODEL;
                                // when can we have the new operators in C# ?
                                ego.MODEL.SetResult(android.os.Build.MODEL);
                                #endregion

                                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 →
                                • Why is C# code so long and so long...Why not be as concise and short as python and C

                                  Why is C# code so long and so long...Why not be as concise and short as python and C

                                  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 →
                                  • Dear Microsoft, why doesn't your C# go beyond C/C++ and support us to develop a software like PS,COREDDRAW and CAD with C/C++?Powerful. If y

                                    Dear Microsoft, why doesn't your C# go beyond C/C++ and support us to develop a software like PS,COREDDRAW and CAD with C/C++?Powerful. If you say that c # can do, why don't you persuade them to use c # development of Adobe, Corel, CAD, UG, PRE production softwares 3 dmax...

                                    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 →
                                    • Add a lock expression (inlined lock)

                                      The locking syntax can be very bulky since it is only available as a statement.

                                      The checked/unchecked keywords in contrast can be used both as a statement and in an expression context:

                                      unchecked { return a + b; }
                                      return unchecked(a + b);

                                      I would greatly appreciate a similar mechanism for the lock statement, since it would allow to remove a lot of useless clutter in thread-safe code.
                                      Nowadays, whenever you need to lock within a property accessor, you are unable to use an expression body:

                                      public object SomeProperty {
                                      get {
                                      lock(_lock) return GetValue();
                                      }
                                      }

                                      I realize the…

                                      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 →
                                        • Refactoring to add a parameter to existing method

                                          This suggestion is migrated to Developer Community. Please use below link to view the current status.
                                          https://developercommunity.visualstudio.com/content/idea/351698/refactoring-to-add-a-parameter-to-existing-method.html
                                          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…)
                                            2 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →

                                          Feedback and Knowledge Base