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

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 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 a Feature to Code Editor to provide live hints for better coding..

    Add a live Code Intellisence feature for better coding.
    rewriting the syntax and find un used variables with color highlighting
    syntax replaces and exceptions..

    7 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 pre and post build event scripts to be written in C#

      With Roslyn, C# scripting has become a reality. This should make it simple to make the pre and post build boxes optionally use C# for their scripts. It also doesn't seem a stretch to just make these full on editor windows, with Intellisense and code coloration.

      7 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 c++ const/mutable equivalent like in C++ into .NET

        1)
        When develop common libraries it is hard to protect data from 3rd side modifications.
        It is require deep copy what sometimes not acceptable (due to performance or memory issues),
        In native C++ was really cool thing: const/mutable modifiers for classes, functions and function parameters.
        It should be really nice if it will be added into one of next version of C#.

        2)
        Sometimes it is cool to mark some variable as final (to notice that it shall not be modified in rest of a function.
        In C++ was great thing const for variables in methods.
        It is also highly…

        7 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 a new "View" option to ListView.

          VerticalList

          ListBox lacks functionality and ListView is the next best thing. The only problem is the fact that if I want a vertical list, I have to put it in details mode, add a column and then set HeaderStyle to none.

          Wouldn't it be better to just have a vertical list option?

          7 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 →
          • Value arrays with constant length

            Now you only can create an array with an extra indirection, because arrays are objects, and you access it through that reference. An array that is **** out in memory like in C++ would be pleased, it would mean much in performance in some cases. (Not just because of the lack of the extra indirection but it could be **** in memory right next to its related datas.)

            now: int[] playerPoints=new int[4];
            desired sg. like: int[4] playerPoints; // where "playerPoints" is not of a reference type, but a value type

            7 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 a programming model for Regions

              Regionizer is an open source Visual Studio 2010 package (will be converted soon to 2012) that formats code into regions;

              I have been told that Regions do not have direct object model in the DTE, that the values are stored in the .suo file for each user.

              Please allow a programmable way to collapse all regions.

              7 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 →
              • Allow exclusion of some namespaces from remove and sort unused usings

                Allow exclusion of some namespaces from remove and sort unused usings. I like to keep my usings / imports minimal but would prefer to always have System and System.Linq for example. Giving me an exclusion list would give me this functionality. Also the ability to set remove and sort unused using to happen on file save would be useful.

                7 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 →
                • Improvement to c# to add the ability to implement a new interface for any non-sealed class

                  Add the ability to implement a new interface for any non-sealed class; in addition to extension methods have extension interfaces. The google Go language already has that. For instance if I could add the IComparable<> and IComparable interfaces to Regex Match I could add Match instances to a Sop.Collections.Generic.BTree.BTreeDictionary

                  7 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 intellisense in C# Preprocessor Directives

                    When working with preprocessor directives, you don't have intellisense in some conditional directive parts.
                    ( http://msdn.microsoft.com/en-us/library/ed8yd1ha.aspx )

                    When working in Debug mode:

                    #if debug
                    // intellisense works here
                    #else
                    // no intellisense here when typing
                    #endif

                    It would be great if we could have intellisense here.

                    7 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 a warning when promoting the result of integer division to a real

                      (Also applies to C++)

                      I find a very common source of annoying and sometimes difficult bugs is forgetting that integer division truncates the fractional component even when the result is being promoted to a real. As a simplistic example:

                      int a = 5;
                      double b = a / 2;

                      Mathematically one expects b=2.5 but in fact this will result in b=2.0. Of course, one can correct this by instead simply using:

                      double b = a / 2.0;

                      However, I wish I had a dollar for every time I forgot to do this.

                      It would be really nice if this general…

                      7 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 →
                      • inline anonymous enum

                        I would to use inline anonymous enums with C#
                        For example instead writing:

                        public class PutPaySheetRequest
                        {
                        public PutPaySheetMode Mode { get; set; }
                        public enum PutPaySheetMode { Live, Test };
                        }

                        I would write:

                        public class PutPaySheetRequest
                        {
                        public enum {Live,Test} Mode { get; set; }
                        }

                        7 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 →
                        • Anonymous type definition

                          Allow c# to define types in inline way. For example I have a web api action that returns a Dto. I have to define action as:

                          public class Dto
                          {
                          public int Key {get; set;}
                          public Group Value {get; set;}
                          }

                          action:
                          public Dto GetDto()
                          {
                          ...
                          }

                          I suggest to write action method as:

                          public {int Key; Group Value;} GetDto()
                          {
                          ...
                          return new {Key = key, Value = group};
                          }

                          Also C# can defer type from action method. So this code can be valid:

                          public anonymous GetDto()
                          {
                          ...
                          return new {Key = key, Value = group};
                          }

                          7 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 →
                          • lazy struct-property assignments

                            When you have a struct accessible as a property inside another object and you wanna change one value inside of that struct, you always need to create a new object with the same values.

                            for example, you have a struct "Vector2" storing an X- and Y-coordinate and you wanna increase the X-Value by one, you would have to write:

                            myObject.Position = new Vector2() { X = myObject.Position.X + 1, Y = myObject.Position.Y, };

                            this syntax is very annoying and hard to read. i would suggest something like this:

                            myObject.Position { X = myObject.Position.X + 1, };

                            this would mean: a…

                            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 Visualizers which allow us to visualize list & dictionary data while debugging

                              Like Datatable in .Net Framework allows us to view data in the datatable, it should allow to view list data like datatable.

                              http://rapiddevbookcode.codeplex.com/releases/view/51056

                              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 →
                              • Support protocols in addition to interfaces

                                Currently we have interfaces, which are the only way to port code around and reuse it. However, I'd like to see something more like what Go has, where any object which, at compile time, can be verified to support all methods/properties required by the target protocol, the assignment will be allowed. This would be enable much more composable and expressive usage of anonymous types, in particular. Consider:

                                public protocol Prot
                                {
                                int Func1(int x, int y);
                                string Func2();
                                string Prop;
                                }

                                and then these methods (could be in different classes):

                                void DoSomething(Prot p) { ... }
                                string SomeString() { ...…

                                6 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  3 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                • 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 →
                                  • Property tempate feature [More reusability, readability, DRY principle. Reduce redundant code. Solve default value issue]

                                    I suggest a feature that help us to create similar propeties.
                                    We frequently create properies something similar like this.

                                    public String NVarCharColumn
                                    {
                                    get
                                    {
                                    return _NVarCharColumn;
                                    }
                                    set
                                    {
                                    if (Object.Equals(value, _NVarCharColumn)) return;
                                    _NVarCharColumn = value;
                                    this.OnPropertyChanged();
                                    }
                                    }

                                    I suggest property template feature in C#6.0.
                                    We can declare property template like this.

                                    public property T MyObservableProperty
                                    {
                                    get
                                    {
                                    return field;
                                    }
                                    set
                                    {
                                    if (Object.Equals(value, field)) return;
                                    field = value;
                                    this.OnPropertyChanged();
                                    }
                                    void OnPropertyChanged();
                                    }

                                    field is a keyword that means private field that will be generated automatically by compiler.
                                    T means a type that is used…

                                    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 →
                                    • let C# type inference downcast to a 'common supertype'

                                      interface A
                                      class B : A
                                      class C : A

                                      A a = condition ? new B() : new C();

                                      Compiler fails because it tries to cast B to C (or was it vice versa?).
                                      Daft workarounds: either cast one (or both) of the instances to A, or use an 'if' statement instead of the ternary operator.

                                      The two types B and C have a clear 'smallest common supertype' A. So come on MS, how hard can it be to determine the intersection of the class hierarchy of the 'then' and the 'else' branch? Look at the source code of…

                                      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 const keyword to method/parameter signatures in C# (Similar to C++?)

                                        Add support for a const keyword that can be applied to method parameters,

                                        e.g. public void MyMethod(const MyClassA myInstance);

                                        It would prevent any state changes to MyClassA and any instances referenced by MyClassA for the life time of the method invocation.

                                        This would inform clients at compile time whether a method is likely to be corrupted or changed.

                                        I believe this is similar to how the const keyword behaves 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…)
                                          0 comments  ·  Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                                        • 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 →
                                          1 2 8 10 12 31 32
                                          • Don't see your idea?

                                          Feedback and Knowledge Base