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 IntelliSense for XML Literals based on Imported xmlns

    The current feature that allows you to import an xmlns gives IntelliSense only when consuming XML via XElement or XDocument objects. You can type .< or .@ or ...< after an objcect of type XElement or XDocument and get IntelliSense for the available element and attribute names based on the XML Namespace.

    I've spoken at several user groups and code camps on this subject and the next thing that everyone wants to do is to get IntelliSense when composing XML Literals, but that's not currently available.

    Even if you have an xmlns imported and type something like the following, you…

    13 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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
    • Make the Optional keyword optional

      Please allow

      Private Sub Test(s As String = 1)

      as in C# besides the current version:

      Private Sub Test(Optional s As String = 1)

      This removes redundancies (--> improves readability, accelerates writing code) and drives forward the co-evolution of VB/C#. I don't see any reason not to allow this.

      13 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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
      • Allow Unsafe Code and Pointers in VB.

        Make it so pointers can be cast in unsafe contexts for complex interop coding ...

        Public Unsafe Function x(y as SomeStruct) As ResultStruct
        Dim p As Object? ' use Object? as an alternative to (void *)
        p = InteropCall(y?) ' use ? to get the address of something.
        Return CType(@p, ResultStruct) ' use @ to dereference.
        End Function

        12 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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
        • enable line comments in VB after the line continuation char (_)

          Just a very simple thing:

          I had an attribute and a field written on two lines like this:

          <DebuggerBrowsable(DebuggerBrowsableState.Never)> _
          Private _SomeField As String

          and wanted to add a line comment after the '_':

          ...State.Never)> _ 'My reason why

          I now get the following error: "Line continuation character '_' must be preceded by at least one white space and must be the last character on the line."

          My request now is to change the rule "...must be the last character on the line" to "...must be the last non-white-space character on that part of the line that does not belong…

          11 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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →

            Hey Chris,

            Excellent suggestion! When we introduced implicit line-continuation in VB2010 it was a very painful restriction that we had to leave in due to technical and schedule constrains that comments weren’t allowed after them. Happily, thanks to the improved parser architecture we use in Roslyn (a future version of VB/C#) we will be able to support it one day. In fact, in the Roslyn compilers comments are already supported after implicit line-continuation so I can write this:

            ’ Comment here

            Private _SomeField As String

            After we got that working it seemed reasonable to lift the restriction on normal, explicit line-continuation as well though we haven’t yet done so.

            While we do not currently have plans to address this issue in the next release of Visual Studio, we are reviewing suggestions now for future versions of VB in and beyond the Roslyn time-frame. We have not determined when that will…

          • Add some Tutorial Projects

            Add some tutorial projects for those poeple who are new to vb.net/2011 get to know what it is and how it works n stuff encouraging them to get into programming and explore new ideas also making the process user friendly. The easiest way to do this by using sample projects like "HelloWorld" and implementing into vb as a tutorial project with basic fucktion like If Fucntions , Select Case and loop functions etc... basically Add more of some practical related tutorials :)

            11 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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
            • Do Not Collapse Comments

              It would be nice if the comments simply did not collapse with CTRL+M+O. That or if there is a blank space between two blocks of comments. Do not treat them as 1. But instead it will collapse the entire section even though comments may not be a part of the one above it (obv limitation of VB because they do not have multi-line comments). I'm sure if we could just have a more robust commenting system. Things would have been peachy and I may not have switched to C#.
              This should be simple, and to me already done as the…

              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…)
                1 comment  ·  Languages - Visual Basic  ·  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…)
                  10 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                • One Line Initialization

                  I have a suggestion for a possible syntax improvement in visual basic.net. It's towards the initialization portion of a one line multiple declaration. Here is an example:

                  'Syntax:
                  Dim a, b, c As Integer = 5

                  'Output:
                  'a = 5
                  'b = 5
                  'c = 5

                  Attached is a file of an example where I would want to use a one line initialization. Take a look at the test scores(test1, test2, test3). An easier way to declare those would be:

                  Dim test1, test2, test3 As Double = -1

                  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 - Visual Basic  ·  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…)
                      10 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                    • Allow the subject of a With block to be referenced in the block using a new keyword WithRef

                      Primarily, this is a convenience mechanism to avoid having to declare a variable in certain cases.

                      Proposed:

                      Function ReturnNewCheese(cheeseType as CheeseEnum) as Cheese
                      With New Cheese
                      .CheeseType = cheeseType 'property
                      .Curdle 'method
                      Helpers.DoSomethingWithCheese(WithRef)
                      Return WithRef
                      End With
                      Exit Function

                      Now:

                      Function ReturnNewCheese(cheeseType as CheeseEnum) as Cheese
                      Dim x as New Cheese
                      With x
                      .CheeseType = cheeseType
                      .Curdle
                      Helpers.DoSomethingWithCheese(x) 'requires explicit variable declaration
                      End With
                      Return x 'requires explicit variable declaration
                      Exit Function

                      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…)
                        under review  ·  4 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                      • Add NotifyPropertyChanged attribute (or keyword) to properties declared as auto-implemented properties

                        I absolutely love using auto-implemented properties and the removal of the need to declare a backing variable.

                        Public Property MyProperty As String

                        However, for classes that implement INotifyPropertyChanged, I can't use auto-implemented properties, and instead have to write the more verbose:

                        Private _myProperty As String
                        Public Property MyProperty As String
                        Get
                        Return _myProperty
                        End Get
                        Set(value As String)
                        _myProperty = value
                        RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("MyProperty"))
                        End Set
                        End Property

                        Multiply this by a few dozen properties, and this gets a little tedious (even with code snippets), much too verbose to read, and increases the surface area for typo bugs.

                        I…

                        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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                        • Extend for each loops to be able to handle Linq clauses (eg. where, order by)

                          At the moment, we have to use 2 lines to do the following...

                          Dim ps = From p in People Where p.Active=True Order By p.Surname, p.FirstName

                          For Each p In ps ...

                          It would be neater to be able to write code such as

                          For Each p In People Where p.Active=True Order By p.Surname, p.FirstName

                          I don't see why this can't work with C# too.

                          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…)
                            1 comment  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                          • Add to Visual Basic the ability to declare a new strong type in terms of another type

                            Many other languages have 'strong' typing. Java, C#, and VB have strong typing regarding classes, but not for the primitive numeric types. It can be a great aid to making large-scale industrial and commercial software. For example, if one could declare two different types Apples and Oranges:

                            Type Apples Is New Integer
                            Type Oranges Is New Integer
                            ...
                            Dim A As Apples = 3
                            Dim B As Oranges = 4

                            then accidentally mixing arithmetic or assignment between these types would be prevented by the compiler, e.g. the assignment:

                            A = B

                            would be rejected by the compiler (and Intellisense) as…

                            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…)
                              4 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                            • Add new initialization way of memvars

                              Add new initialization way of memvars:
                              x,y = 0
                              x,y,z = 1,2,3
                              a,b,c = MyFunction()

                              Function MyFunction() as byte, byte, int
                              return 1,2,3

                              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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                              • vb.net: make generated code-artefacts like class, sub, fields, methods: public, protected or private

                                The default-behaviour if you type something new or unknown in your code and you work with:
                                - "generate class"
                                - "generate property"
                                - "generate field",
                                - "generate method"
                                do some random things.

                                Often you get a "Class MyClass..." without specification of "public", "private", or "protected".

                                A Class-Field becomes a "Dim myField"... instead of a "Private myField"

                                More and more frameworks using reflection to work and it's not really clear whats the default of an empty directive or a dim instead of private
                                does.

                                It is not really easy to see those things if you search issues in your code...
                                So…

                                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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                                • Addition of a 'With Each' Statement

                                  Rather than having to a With statement within a For statement, users would have the ability to consolidate the two statements.

                                  Example:
                                  Dim BigSpenders = (From Customer In Customers Where Customer.DollarsSpent > 1000 Select Customer)
                                  With Each Customer In Customers
                                  .RewardsProgram = True
                                  .StoreCredit = 50
                                  .Discount = 15
                                  Next

                                  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 - Visual Basic  ·  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 - Visual Basic  ·  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 - Visual Basic  ·  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…)
                                          1 comment  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Better variant support in vb.net?

                                          I have been fooling around with devices in VB.NET and I have found out that variant support for c++ dll modules is poor at best in VariantHelper. Would it be possible to have an advanced version of variants in vb.net much like vb6? It is annoying when some modules such as native c++ dlls require full-fledged variant and will not work with the object data type. Can you please tell me if this will be implemented in a future version as a possible datatype?
                                          I would equate this similar to var functionality in C# but a little more complex. If…

                                          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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                                          • Don't see your idea?

                                          Feedback and Knowledge Base