Visual Studio

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, visit the Visual Studio Connect site: http://connect.microsoft.com/visualstudio.

ASP.NET Runtime/Web Tooling suggestions have moved! All your ideas, including your votes, have been transferred and are searchable in the ASP.Net Uservoice forum. Please submit any new ASP.NET Runtime/Web Tooling suggestions, or vote on existing suggestions by going to http://aspnet.uservoice.com.

We look forward to hearing from you!

Thanks – Deon Herbert
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 vote and comment on it.

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

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

  • Hot ideas
  • Top ideas
  • New ideas
  1. Add new C# statement for case-insensitive "switch()"

    I've previously posted this on Connect - https://connect.microsoft.com/VisualStudio/feedback/details/566079/add-new-c-statement-for-case-insensitive-switch

    The C# 'switch' statement does not allow for performing any kind of case-insensitive comparison for 'case' values.

    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 →
    • Variant of switch that throws exception if nothing matches

      I get sick of writing

      default:
      throw new ApplicationException(value.ToString());

      at the bottom of every switch statement where I know a match should occur, but want to stop the compiler complaining about unitialised variables. I suggest something like:

      switch checked (value) {
      ...
      }

      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 →
      • async call syntax for Begin... / End....

        IAsyncResult ar = async (int n = Receive(buffer))
        {
        Console.WriteLine("Inside the callback after EndReceive");
        }
        Console.WriteLine("BeginReceive= {0}, but callback not called yet", ar);

        Like get_Property, put_Property, or Item property.
        Like try {} finally {x.Dispose();} was converted to using {}

        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 index to foreach statements

          Add index to foreach statements so developers don't have to declare their own indexes to track counts.

          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 →
          • Add tail call elimination to the C# compiler

            Sometimes algorithms can be expressed far more elegantly in a tail-recursive form. The problem with that is the memory footprint, and possibly overflowing the stack. Though the 64bit JIT'er may sometimes decide to optimise the tail call, there are no guarantees, leaving you with no choice than to re-write the algorithm, avoiding tail calls. Having the compiler eliminate tail calls would let developers express algorithms in different ways, which may be more suited for the problem, while also helping developers who are not aware that their tail recursive algorithms may be problematic.

            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 →
            • Cancel Build Proccess

              Cancel Build - I accidently select build, then immediately realize I forgot something

              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 →
              • Support chat rooms that allow for immediate discussion and are newb friendly

                While learning ASP.Net MVC 4 and C# I sometimes either get stuck on a topic or have further questions. Often times I have to quit studying for a day just to wait for an answer on something that I'm stuck on which is completely unrealistic and unproductive.

                My first impulse is to go to the freenode IRC channels for ##csharp or ##asp.net but usually the channel is dead (especially in the evening) or no one cares about my newb questions (it even states "no spoonfeeding" upon entering). Sometimes there isn't even anyone there that knows MVC. IRC used to be…

                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 →
                • Make inline if(?) without else

                  As you know many of developers use inline if, and there are many cases when really we need only one case. For example we write
                  textBlock1.Text = textBlock1.Text.Lenght > 20 ? textBlock1.Text.Substring(0,20) : textBlock1.Text;
                  But, we can simply write
                  textBlock1.Text = textBlock1.Text.Lenght > 20 ? textBlock1.Text.Substring(0,20);

                  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 →
                  • Support field-targeted attributes on auto-properties

                    I would like to see C# support using field-targeted attributes on auto-properties where the compiler applies said attribute to the generated backing field. This functionality has precedent in that the compiler already behaves like this for such attributes applied towards events:

                    // This works in all versions of C#
                    [field: NonSerialized]
                    public event EventHandler SomeEvent;

                    // This will not compile
                    [field: NonSerialized]
                    public string SomeProperty { get; set; }

                    // This seems unnecessary
                    [NonSerialized]
                    private string _someOtherProperty;
                    public string SomeOtherProperty {
                    get { return _someOtherProperty; }
                    set { _someOtherProperty = value; }
                    }

                    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 custom auto-property implementations

                      This would allow us to write a form of extension method for auto property getters and setters. The idea behind this is that we would be able to encapsulate commonly repeated setter logic into a separate unit to make our code DRY. These methods should use generic typing to set the type of the property and the type of the class that this method could be applied in. These methods should also provide references to the backing field, the new value (if it is a setter), and the containing class (to provide class level access in the method)

                      I.E. -…

                      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 →
                      • Make LINQ query syntax as expressive as extension method syntax

                        LINQ query syntax lacks a lot of features that exist in extension method syntax, such as .Single(), .First(), .Distinct(), .Average(), ...

                        I.e.:

                        var col =
                        from cust in customers
                        where cust.ID == 5
                        select first cust;

                        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 →
                        • Easier Immutable Classes (case classes)

                          I often find myself writing immutable business objects (objects with no logic, only data). For example, EventArgs and Exception classes. Here is one I wrote today:

                          public class SelectedMazeChangedArgs : EventArgs
                          {
                          public Maze PreviousMaze { get; private set; }
                          public Maze SelectedMaze { get; private set; }
                          public SelectedMazeChangedArgs(Maze previousMaze, Maze selectedMaze)
                          {
                          PreviousMaze = previousMaze;
                          SelectedMaze = selectedMaze;
                          }
                          }

                          This is what that same class would look like in Scala:

                          case class SelectedMazeChangedArgs(Maze PreviousMaze, Maze SelectedMaze) extends EventArgs

                          As a bonus, Scala also automatically overrides .equals() and .hashCode() for you.

                          When you write a lot of EventArgs…

                          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 →
                          • Automatically Add Parentheses  and a Semicolon to a Selected Intellisense Method.

                            I wonder how many times developers had to type Parentheses  and Semicolon after selecting a simple Method from Intellisense: for example, foo.ToString();
                            Having to type parentheses  and semicolons all the time, especially for Methods that accept no parameters, is a huge waste of time.
                            Right now a Tab key selects the method with no Parentheses  or Semicolon, so I would suggest Tab Tab or other key combination that could give the developer the freedom to complete the sentence period.

                            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 →
                            • 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 →
                              • Screenshot function support for Windows Phone in ACTUAL device

                                Why Windows Phone only support screenshot funtion in emulator only?? That's really odd. When user wants to report a bugs to developer and wanna show actual screen shot, do they have to being a camera and take actual photo?? It would be really good when they have a screen shot function, so when user has noticed there is bugs, make them report to developers directly via outlook app in windows phone

                                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 →
                                • Add ?! as an enhanced Property Chainging Coalesce operator

                                  This is not a new idea, but just a refinement of other like requests.

                                  The scenario is if any object in a property chain is null, then short circuit the evaluation return null from the chain and allow a possible default.

                                  eg.
                                  myObj.Field.ItemList[3].Address.Postcode ?! "0000";

                                  This I see has less change, overhead and eye fatigue than the other common proposal of ?.

                                  myObj?.Field?.ItemList?.[3]?.Address?.Postcode ?? "0000";

                                  This also must allow the following:

                                  return myObj.Field.ItemList[3].Address.Postcode ?! null;

                                  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 Indexers as extension methods

                                    It would be very handy to be able to define indexers as extension methods in C#.

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

                                      Add suffix for short and byte for numbers in the language. For example being able to specify

                                      5US or 5S
                                      much like 5UL, 5U, 5L can be.

                                      instead of
                                      (UInt16)5 or (ushort)5
                                      like must be done today

                                      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 →
                                      • Add more informations if WCF services client generation failed

                                        If the service client generation failed and the reference.cs is empty I dont get correct information about the error in VS
                                        If I set logging in config file in the most cases I find the description of the problem in the log file but it is too cumbersome...

                                        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 →
                                        • Add support for generic operators

                                          C++ and the CLI currently support generic operators, C# does not and can't use them.

                                          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 →
                                          1 2 8 10 12 26 27
                                          • Don't see your idea?

                                          Feedback and Knowledge Base