Visual Studio IDE

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, you can visit our Developer Community website to get started. 

NOTE: The Applications Insights forum has moved to the Azure feedback site.

For suggestions for improvements to other developer products, see these sites:

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

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. Dynamic generic calls and type conversions

    Let C# do:
    1. dynamic generic calls.
    2. dynamic type conversions.

    Example:

    public void Method(object a)
    {
    int r = ExternalGenericFunc < a.GetType() > ( // dynamic generic call.
    (a.GetType())a // dynamic type conversion.
    );
    }

    // In another DLL, in a non modifiable code:
    public int ExternalGenericFunc<T>(T data)
    {
    return ...; // do something on data.
    }

    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 →
    • Provide a keyword to restrict accessing a member function if the calling class does not implements specific interface in .Net (C#)

      Provide a keyword to restrict accessing a member function if the calling class does not implements specific interface in .Net (C#)

      For example:
      The class which implements IProfessor only can access IStudent.SetGrade method. If other class try to access, then Compiler should show error.

      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 support for Multiple parallel Console windows.

        It would be something like
        Console c = new Console();
        Console b = new Console():

        c.WriteLine("diagnostic output1");
        b.WriteLine("diagnostic output2");

        I assume they would be inherently on their own threads.

        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 →
        • String comparison operator that ignores case

          In C#, the == comparison operator is always case-sensitive when comparing string values, and there does not appear to be an alternate operator that can ignore case. Instead, you have to do something like this, which seems quite ugly and unnecessary for such a common type of string comparison:

          string.Equals(string1, string2, StringComparison.OrdinalIgnoreCase)

          By comparison, in PowerShell, the standard -eq operator ignores case when comparing string values, and there is an additional -ceq operator that allows you to force case sensitivity when comparing strings.

          Given that the need for two different string comparison operators was already identified and addressed in PowerShell,…

          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 →
          • nameof for multiple members

            In c# 6
            string name = nameof(Property); // name = "Property"
            string[] names = { nameof(Property1), nameof(Property2), nameof(Property3), nameof(Property4) }; // names = Array of names
            I suggest to support the following syntax:
            string[] names = nameof(Property1, Property2, Property3, Property4); // names = Array of names

            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 →
            • Bring back "Committed by typing the following characters" intellisense option for C#

              This was a very handy feature in previous versions of Visual Studio. Now I have to press escape every time I don't want the suggestion to commit, which is not only frustrating but also slows me down.

              I run into this frequently while typing a type name that hasn't been referenced by a "using" in the file yet.

              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 →
              • Switch ranking of matches when searching with "CamelHumps" in NavigateTo

                When using "CamelHumps" e.g. searching for FooBarBaz class by entering FBB in the NavigateTo (Ctrl+,) box, the matches for the camel humps are ranked lower than character matches (e.g. FbbClass). Since the camel hump style search only works if you enter in CAPS, it certainly seems like any camel hump matches should be ranked first in the results.

                For the longest time, I didn't even realize camel hump searching even work in VS (I actually started writing an extension to add it) because of the poor ranking in the results.

                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 →
                • automatic backing field with expanded property declaration with a new "field" keyword

                  When using a property with some logic in the setter (INPC for example), I don't want to declare a backing field each time. Using a "field" reserved keyword would clean up the syntax:

                  public int Age {
                  get; // short equivalent for get => return field;
                  set {
                  if(field != value)
                  {
                  field = value;
                  this.OnPropertyChanged();
                  }
                  }
                  }

                  Benefits:
                  - Don't have to declare a backing field
                  - Don't need to create a comment on the backing field when using StyleCop
                  - When using StyleCop, removes the complains about private fields declared before a public property
                  - No mistakes…

                  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 →
                  • APIs for taking screenshots and share

                    Please, develop APIs for taking screenshots and can be shared on social media on uwp.

                    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 partial enum support

                      // auto generated
                      partial enum PartialEnum
                      {
                      ...
                      }

                      ...
                      // user code
                      partial enum PartialEnum
                      {
                      ...
                      }

                      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 →
                      • Improve

                        Hi All,
                        I have something what can improve .NET and C# more further in cloud and cloud programing. Everything is prepared for analytics and developers. I've tried lot of contacts in microsoft but nobody helped me and nobody give to me better contact.

                        So is here someone from Microsoft who could discuss with me? I can come to the Microsoft CZ and show you how far you can jump with this.

                        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 →
                        • I would like to see that the C# editor and compiler get XML support.

                          I would like to see that the C# editor and compiler get something like XML support. It is very simple to integrate and extremely helpful at development time and furthermore, it allows unbelievably powerful new futures. Please check the attachment and for the case that it is interesting I could send test application and code examples.
                          (I wrote an own c# compatible Compiler for fast runtime compilations)

                          Regards from Germany
                          Christian Ohle
                          Free programmer

                          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 →
                          • Move UserAppDataPath to another namespace than Forms

                            In order to get the applications specific path within the current users appdata folder you have to use Application.UserAppDataPath right now. That is located within the System.Windows.Forms namespace.

                            Since this information should not me limited to Forms it should be moved to a higher namespace

                            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 "as" option in foreach loop definition

                              foreach( var item in SomeList as MyClass )
                              {
                              // here item is of type MyClass
                              }

                              equivalent to something like:

                              foreach( var rawItem in SomeList )
                              {
                              var item = rawItem as MyClass;
                              if( item == null ) continue;

                              // here item is of type MyClass
                              }

                              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 →
                              • 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…

                                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 →
                                • Code Snippets: Support importing feature for C#

                                  It would be nice when the importing feature of code snippets also works under 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 DateTime literal

                                    When writing code in VB.net I can use date literals such as #2015-12-18 14:30# or #12/18/2015 14:30# and declare Constant date literals.
                                    These two features would be great if also supported in C# with the following exceptions:
                                    * The date/-time literal should only support ISO8601 date and time format.
                                    * Since DateTime does not contain any information about the time zone, #2015-12-18T14:30+02# would either be prohibited or converted to zulu time when compiling.

                                    Optional implementation parts:
                                    * If I type a date in my localized date format, the document tree automatically changes it to ISO8601 format.
                                    * Specifying year only…

                                    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 →
                                    • Implement Wraps Keyword

                                      It would be nice if the compiler could generate 'wrapper' classes for you,. This would look/be similar in style to inheritance, but works as a wrapper rather than derived class. The benefits would be faster and easier development, as well as reduced maintenance if wrapped types change. It would be of particular benefit when creating wrappers, proxies, deorators and mocks (the latter would therefore benefit anyone doing unit testing).

                                      For a trivial/not real world example;

                                      // The 'wraps System.IO.Stream' tells the compiler the subtype of value being wrapped. The compiler generates auto-pass through methods/properties from the wrapped type for any…

                                      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 →
                                      • Ternary Expression not converting automatically.

                                        while

                                        if (myBool == true)
                                        {
                                        myInt = 0;
                                        }
                                        else
                                        {
                                        myInt = 1;
                                        }

                                        works fine,

                                        myInt = (myBool) ? 0 : 1;

                                        results in an error and the compiler says that I cannot implicitly convert int to byte, so I have to do the following:

                                        myInt = (myBool) ? (byte)0 : (byte)1;

                                        this however seems unnecessary since "0" and "1" are constants and in the scope of System.Byte, so I don't see why conversion is needed here and it is very annoying.

                                        Best regards

                                        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 setter value modifier

                                          add support for changing property input.

                                          like this:

                                          public string property { get{....}, private int set{....}}

                                          This property takes int (value type is int). but returns string.

                                          then we dont have to do some logic(ex: converting) outside property.

                                          thanks

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

                                          Feedback and Knowledge Base