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. Assert Attribute

    It's a best practice to explicitly handle assumptions as shown below:

    public void DoSomething(MyObj withMyObj)
    {
    if(withMyObj == null)
    return;

    ... do something
    }

    OR

    public void DoSomething(MyObj withMyObj)
    {
    Debug.Assert(withMyObj != null)

    ... do something
    }

    A few simple attributes could make the code more terse and help keep the method focused. Hey, we could even generate several unit tests based on this feature. This is the markup I have in mind:

    [ArgAssumption("withMyObj", ArgumentValue.IsNull, WhenTrue.Return)]
    public void DoSomething(MyObj withMyObj)
    {

    ... do something
    }

    [ArgAssumption("message", ArgumentValue.IsNull, WhenTrue.Return)]
    [ArgAssumption("message", ArgumentValue.IsEqualTo, "", WhenTrue.Return)]
    public void ThrowException(string message)
    {
    throw new Exception(message); …

    1 vote
    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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
    • string should implement IReadOnlyList<char>

      There is no reason not to. It already implements IEnumerable<char>.

      1 vote
      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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
      • In-Text Display Q1 Opportunities

        Hello,

        My name is Jake Bakker with InTopic Media. I hope 2012 is treating you well so far. We have some new revenue streams and product offerings for silverlight.net

        Over the next few weeks we are looking to create some solid in-text advertisement partnerships, to ensure we meet our upcoming demand. Through our contextual ads and MicroBanners, we can simply provide you with a java script tag to create an additional stream of your revenue.

        Please let me know some times for us to connect this week on these opportunities and get the approval process going.

        Thanks,

        Jake Bakker
        Director…

        1 vote
        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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
        • C# System.Net.Sockets.Socket.SendFile

          Using native C++ I can call the TransmitFile API function and using either an OVERLAPPED structure or by setting the File Pointer, I can transmit a file starting at some offset into the file.

          It would be great if we could have similar functionality built into the Socket.SendFile function, as that function wraps the TransmitFile API call.

          I'd rather not have to import DLL's and what not to be able to get this functionality.

          Thanks for the hard work!

          1 vote
          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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
          • Add #Region system to CSS/js Classes like we have in Code Classes and also add links at the bottom for quick access.

            It would be nice to have the #Region system like we have in our code classes, in css and js classes and also provide links at the bottom for quick access. Similar to what we have for aspx pages. (Design - Split - Source) But clicking the link at the bottom would take us directly to that region. (Like an anchor)

            This would make it much easier and quicker to find what you're looking for. (Please see attached image.)

            Thanks.

            1 vote
            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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
            • ConvexHull2D ConvexHull3D objects, each with point Contained and OnEdge properties

              I wish there were a .NET function ConvexHull2D and ConvexHull3D that would be constructed from a set or array of points, and each would have properties Contained and OnEdge(within fp accuracy).

              1 vote
              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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
              • 1 vote
                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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                • System.Diagnostics.PerformanceCounter.Exists() method should be public

                  When i try to get a performance counter for something not available i get an exception. It fails on this method. Why not make it public so we could test (validate) the performance counter before calling PerformanceCounter.BeginInit()

                  1 vote
                  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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                  • Remove .NET

                    The old VS 6.0 was fast, and woks on slow PC's very good.
                    Why MS must write the new IDE since VS2003 in #C ?

                    VC6.0 was a Ferrari VS2003 and greater is an auger !
                    Even on 3GHz quard cores VC2008 isn't usable.

                    My idea: Take the old VS6.0 sources, put some good features
                    from the newer version in it, and we have a very good development
                    tool. Sine VC2003 the IDE is only bull...sh...t !

                    1 vote
                    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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                    • Debug Javascript in UserControl

                      It's a very frustrating when i want to debug the javascript in usercontrol. I need to write the debugger in the code.
                      If you provide the facility to debug the javascript without writing the debugger line it's great help to us.

                      1 vote
                      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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                      • implement means to define generic type constraints that are exclusive

                        Currentyl I don't see any possibility to do the following, neither in C# nor VB:

                        Interface ITest(Of T)
                        '...
                        End Interface

                        Public Class Test(Of T1, T2)
                        Implements ITest(Of T1)
                        Implements ITest(Of T2)

                        End Class

                        Because T1 could be the same type as T2 and then the Interface would be implemented twice which of course is not allowed.

                        I suggest now to implement a new keyword or other way to be able to define a constraint that ensures that a generic type is NOT the exact type of anoter generic type, eg:

                        Interface ITest(Of T)
                        '...
                        End Interface

                        Public Class Test(Of…

                        1 vote
                        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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                        • make it possible to format -0.0

                          It appears to be not possible to distinguish in formatting, the difference between -0.0d and 0.0d. None of the custom numeric format strings allow it and the default shows both -0.0d and 0.0d as 0. So it appears not possible to even format -0.0 unless you write conditional code checking the longbit pattern or otherwise dividing the number by 1 and testing if the result is -Infinity. I suggest to extend the ';' format string so that the two-section separator will take zero and positive values first, and negative values *including negative zero*.

                          1 vote
                          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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                          • Entity Framework must be enhanced ,

                            I need to add a function to import the stored procedures or functions every time if i delete the Entity framework ,and add again. it becomes hectic work, so i think we should b able to get all Stored Proc , functions and views after adding Entity framework .
                            a) Even i update the Entity framework model sometimes it wont reflect the Entity objects ..

                            1 vote
                            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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                            • drag and drop ListBox to reorder items

                              drag and drop ListBox to reorder items

                              1 vote
                              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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                              • 1 vote
                                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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                                • Provide Intellisense for ConfigurationManager keys stored in .config files

                                  Provide Intellisense for ConfigurationManager keys stored in Web.config or App.config files.
                                  For example, if there is a connectionString element with a key named "MyConnectionString" defined in the Web.config or App.config file for a Visual Studio project, it would be great if Visual Studio could automatically present Intellisense options for these available keys while typing ConfigurationManager.ConnectionStrings or any other common ConfigurationManager settings such as ConfigurationManager.AppSettings etc.

                                  1 vote
                                  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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Wheres the VB.NET Examples Please ?

                                    http://msdn.microsoft.com/en-us/vs11trainingcourse_aspnetwebforms45_topic4

                                    Only showing one language is very unprofessional behaviour from a developer that should know better .......

                                    1 vote
                                    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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                                    • .Sql File Not Open

                                      .Sql File not open in visual studio

                                      1 vote
                                      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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Additional overload for System.Runtime.InteropServices.Marshal.PtrToStructure(..)

                                        It's just a very small issue, but as I prefere strongly typed methods I would like to see an additional overload of method System.Runtime.InteropServices.Marshal.PtrToStructure(..) that takes the type parameter as a generic type parameter:

                                        C# example:

                                        public static T PtrToStructure<T>(IntPtr pointer) {
                                        return (T)PtrToStructure(pointer, typeof(T));
                                        }

                                        VB example:

                                        Public Shared Function PtrToStructure(Of T)(ByVal pointer As IntPtr) As T
                                        Return DirectCast(PtrToStructure(pointer, GetType(T)), T)
                                        End Function

                                        Best regards
                                        Chris

                                        1 vote
                                        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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                                        • visual studio problem with css in html file

                                          when I put second style in visual studio first is removed.

                                          1 vote
                                          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  ·  .NET  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          Feedback and Knowledge Base