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: https://connect.microsoft.com/visualstudio.

To review the current UserVoice statuses and their definitions, please review our “What Does the Status of My Feedback Mean?” article.

We would also like to invite you to check out the Announcements section we have added to this site, where we will be posting special opportunities for you to participate in.

We look forward to hearing from you!

The Visual Studio Team
Terms of Service and Privacy Policy

I suggest you ...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

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

If a similar idea already exists, you can support and comment on it.

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

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

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. Support #pragma mark

    Support the use of the #pragma mark directive to display labels and separators in function pop-up menus. This is particularly useful in external editors that scan for this.

    10 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 →
    • 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; }
      }

      10 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 →
      • 10 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 Mixin support

          Composition is always a pain when we have to bind all method from interface to object that really implement it

          The code often looks like messy and complex for nothing.

          Maybe this Jon Skeet's idea could solve this:
          http://stackoverflow.com/a/255621

          10 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 →
          • using keyword over methods

            Today the "using" keyword can be used to create try/finally blocks in a easy and safe manner. The problem is that using keyword requires an IDisposable instance.
            But in many situations we have a start/end approach, lock/unlock or similar that do not return any value and, surely have a better performance if no helper object is created.
            So, I think that it will be great if void methods can be marked with "finalizer" methods, so when used in a using clause, the compiler can create the right begin/end block.

            I have a sample at: http://www.paulozemek.com/Polarlight.TestPage.aspx

            There, the Initialize method is…

            9 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 →
            • Implement WPF/Silverlight Control Template extraction

              Expression Blend has a great feature that allows users to extract the template of a control (Edit Template -> Edit Copy) and conveniently stores it into a Resource Dictionary. Having this feature in VS would be great, because blend maybe nice, but isn't as responsive as VS.

              9 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 →
              • Using 'new' without the type name to call constructors

                Similarly how the 'var' keyword makes it simpler to declare an object in C#, the 'new' keyword could also imply the type/constructor to be used to initialize an object.

                For example, instead of writing:
                Dictionary<string, List<Tuple<int, int>>> data = new Dictionary<string, List<Tuple<int, int>>>();

                one could write simply:
                Dictionary<string, List<Tuple<int, int>>> data = new();

                The compiler would be able to match constructor overloads as well, so potentially you could write:
                StringBuilder data = new("test data", 1000);

                which would automatically call the StringBuilder(string value, int capacity) constructor.

                This feature might be useful in list initializers too, e.g.:
                List<StringBuilder> builders = new()
                { …

                9 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 Initializer

                  In addition to get{} / set {} it would be handy to have an init {} block on Properties

                  e.g. The new [CallerMemberName] allows us to call the following without hard coding the proprety names:

                  protected bool SetProperty<T>(ref T storage, T value, [CallerMemberName] String propertyName = null)
                  protected bool ValidateField([CallerMemberName]string propertyName = null) ....
                  etc.

                  where ValidateField runs any validations that have been defined for a given field:
                  eg. protected Dictionary<string, Action<string>> Validations = new Dictionary<string, Action<string>>();

                  The only hassle is that the Validations need to be defined seperate to the Property and so require the property name to be…

                  9 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 →
                  • Operator Try get Index Otherwise.

                    I would like to Handle Indexing Exceptions by adding Default value after index.

                    I will Show the operator as @.(just an example sign to clarify)

                    Example 1:

                    string[] args = new string[3];

                    string str = args[4] @ "default" ; // Try get args[4]. otherwise "default"

                    Example 2:

                    List<int> RGBA_Color = new List<int> {55, 55, 55};

                    int alpha = RGBA_Color[3] @ 0 ; // Try get value otherwise 0

                    Example 3:

                    Dictionary<string , Action> _dic;

                    _dic["Key"] @ (() => { }) (); // Try get value otherwise

                    This can really help Improve code readabilty. Specially in cases that we have unknown…

                    9 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 "fluent" keyword to c#

                      I write a lot of code like this:

                      public MyClass DoSomthing()
                      {
                      // snip //
                      return this;
                      }

                      For fluent style code (useful for Razor html helpers):

                      @html.MyClass.Dosomthing().SomthingElse().etc();

                      What I propose is a fluent keyword that can be used when defining the method, so the above method would become:

                      public fluent DoSomthing()
                      {
                      // snip //
                      }

                      I believe this would be useful as a lot of the time our class definitions can be quite complex, imagine making an editor control, the class definition would be something like ‘MyEditor<TModel, TValue>’

                      Replacing this sort of definition and removing the need for…

                      9 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 →
                      • Generic pointers

                        It would be great to have generic pointers within C#.

                        It is quite painful to have the function written for double, byte...

                        e.g.

                        private Matrix<float> Cast( Matrix<byte> m) {//do the job}
                        private Matrix<float> Cast( Matrix<int> m) {//do the job}
                        ...

                        instead of
                        private unsafe Matrix<float> Cast<T>( Matrix<T> m)
                        {
                        T* mPtr = m.Ptr;

                        //do the job
                        }

                        The CIL and thus CLR itself supports generic pointers. Why would not C# also ?

                        9 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 →
                        • C#: Implement "Outline Statement Blocks" just like the one you have for C++

                          Today in C# you have outlining for methods, properties, classes, namespaces and regions, this is great but not enough.

                          1. First of all we want this for all statement blocks like if, while, foreach, for, using and so on.

                          2. It would also be great if any selection in the editor could be collapsed.

                          3. In addition to showing the content of a collapsed section when hovering over the boxed "..." at the end of the collapsed section "HeadLine", the same should content should be shown when hovering over a plus(+) sign in the "Outline column" to the left of…

                          9 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 fixed size arrays in safe context

                            unsafe struct X
                            {
                            public int i1;
                            fixed int a[4];
                            public int i2;
                            }
                            The struct needs not to be marked unsafe since int[4] is nothing but a four anonymous ints **** out sequentially. They should be treated not as array, but like any ordinary ints with a non-standard names (a[1], a[3], a[a[a[3]]]).

                            9 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 →
                            • Add a 'MustUse' attribute usable for the 'return' target, to indicate the return value of a method must be used

                              [return:MustUse]
                              Action Foo(int param) {
                              return () => { Debug.WriteLine(param.ToString()); };
                              }

                              Foo(5);

                              Would generate the warning/error

                              return value is never used

                              Reason not to use 'out': the code size would increase by a considerable amount, and the readability would decrease.

                              9 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 BulkObservableCollection<T> public to the core .NET Framework

                                Using WPF and ObservableCollection<T> has serious performance issues if you need to add large sets of collection items at once, which is well known today. Each updated item fires multiple events that have significants performance costs.

                                There are hundreds, if not thousands, of custom implementations on the net to overcome this problem and that have their own, more or less adventurous, way of adding a new "AddRange()" method that does not fire all those events for each element but only once once at the end up the collection update.

                                There is already an existing implementation written by Microsoft, the BulkObservableCollection<T>…

                                9 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 →
                                • WPF: Add the possibility to load a font from stream

                                  The idea it's to load in WPF a font from Internet, a stream.

                                  9 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 →
                                  • 9 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 →
                                    • C# Regex Literals - Seamless Regular Expression integration with .NET Framework and C# Language Grammar

                                      Create a seamless integration of the .NET library code base and language grammar with regular expressions, through new methods signatures and the lexical definition of regex literals.

                                      I want to able to write regex literals like:

                                      /[a-z]/cim // standing for new Regex("a-z", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.Multiline)

                                      I want to be able to write the following code:

                                      Instead of: "some string".Split(new char[] { ' ', '*' })

                                      It could be: "some string".Split(/[\s\*]/)

                                      And the same could work for Replace(), IndexOf(), Substring() and so on.

                                      Especially for replacing scenarios, a especial 'g' flag (or 'a') would mean global/all matches, for replacing…

                                      8 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 →
                                      • Provide non-default value initializatoin for arrays in C#

                                        Can we please have the ability to assign a non-default(0) value to array elements in C#. When I look at the cost of array construction, I see varied results, sometimes it is comparable to the cost of a loop, 400,000 - 1,200,000 ticks for a 1024x1024 float array[,]. Other-times it seems to drop right down to about 2000 ticks. I can only explain this by the runtime either having knowledge about whether chunks of memory have already been set to zero, or else initialization is using memcpy or some such mechanism under the hood to set zero. I would guess…

                                        8 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

                                          8 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 38 39
                                          • Don't see your idea?

                                          Feedback and Knowledge Base