Visual Studio 2015

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. 

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

    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…)
      under review  ·  5 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
    • Fix opcodes from vb compiler when initialize an array and function local variant

      Hi guys,

      I want to point out some flaw opcodes that vb compiler create and hope VB dev team have sometime to fix those and make VB better performance.

      1. Array

      When I create an array like this "Dim Data(input.Length - 1) As Char", compiler will rewrite to "Dim Data(input.Length - 1 + 1) As Char"; it's unnecessary 4 bytes and you loss 4 of 64 bytes if you aim to create a tiny method.

      2. Function local variant

      VB function away has self local variant like "Function foo() As string" will have "Dim foo As String" even it's unused…

      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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
      • Start Making VB and C# closer to each other.

        Start Making VB and C# closer to each other in every future versions.
        And finally merge them in 5 or 6 versions from now. (when the differences will be almost nothing)

        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…)
          5 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
        • Change the name Visual Basic or VB to B#

          Everybody thinks and its really common perception that C# is much more powerful than VB. Which is totally false. Under.net framework, there is no difference. I have used both VB and C# IDE. But honestly. VB IDE is a lot more better than C# IDE.

          We need to re-brand Visual Basic before everybody starts hating it. Change the name of product from VB to B#

          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 - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
          • Using object comparing in the Select Case statement

            Select Object myobj
            ....Case obj1, obj2, obj3, obj4

            ....Case frm1

            End Select

            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…)
              8 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

              7 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                2 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
              • Rename Visual Basic to V#

                I believe it is time that the acronym BASIC (Beginner's All-purpose Symbolic Instruction Code) be disassociated from VB.

                7 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  2 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                • Create a project translator from VB to C#.

                  With the decline of VB usage as a language, we need a method to translate large project into another form.

                  Just as VS provides project upgrade importers between its versions, could this now include the option to translate between languages as well?

                  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 →
                    • VB Samples - UWP

                      Almost no VB samples are available for UWP. You find a topic you're interested in at GitHub Windows-universal-samples - and darn - C# only.

                      It makes learning about UWP needlessly complicated and error prone.

                      PLEASE - make the time to create VB samples.

                      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 →
                      • Allow additional spaces in VB code.

                        Sometimes multiple spaces make code more readable: numbers can be aligned right and in table like initializations of Dictioary objects etc., but VS just deletes most unnecessary spaces like http://stackoverflow.com/questions/25731512/multiple-spaces-in-vb-net-code demonstrates.
                        However, the option to avoid this behavior (see link) also disables useful features.
                        I wished there was an option to allow these (just not delete) spaces.

                        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 →
                        • 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 →
                          • In vb.net, textbox in multi-line mode

                            Can you add a design-time property that allows for either automatic clearing of the textbox when full, or over-write at the beginning (~circular queue).

                            I use a multi-line, textbox for a serial protocol analyzer real-time display. After about 3 days running, the textbox freezes, but the analyzer is still running. I setup a timer to clear the box every 4 hours. I don't want to test the remaining buffer size each time I write, since I am writing from multiple subs.

                            It's easy to use the textbox for this, as when an error occurs a dump of the textbox can…

                            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 →
                            • Extension Methods should be allowed to be defined in Classes

                              Why are we only allowed to add Extension Methods to modules and not classes?
                              1. Modules are a vb6 hangover and have no real place in vb.net
                              2. The compiler converts Modules to Classes anyway so why the restriction in the IDE? This is a pseudo restriction.
                              3. You cannot have a Partial Module.

                              The *Only* time I am forced to use a Module is for Extension methods. I *Never* ever use Modules (same as I never use the VisualBasic Namespace) in my code anywhere.

                              Example:
                              This is allowed.

                              <System.Runtime.CompilerServices.Extension()>
                              Module mFooExtensions

                              <System.Runtime.CompilerServices.Extension()>
                              Public Sub Append(this As System.Text.StringBuilder, ParamArray strings()…

                              5 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 declaring matching operators (such as =/<>) optional

                                When defining an operator such as:
                                Public Shared Operator =(value1 As Binary, value2 As Integer)
                                Return value1.ToInt32() = value2
                                End Operator

                                The compiler should automatically default the matching "<>" to "Not =" thus avoiding the now mandatory declaration:
                                Public Shared Operator <>(value1 As Binary, value2 As Integer)
                                Return Not value1 = value2
                                End Operator

                                5 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  ·  2 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                                • 5 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 →
                                  • Ability for inline multiple variables assignment

                                    It 'll be nice to write something like

                                    a = b = c = 6

                                    instead of

                                    a = 6
                                    b = 6
                                    c = 6

                                    5 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 →
                                    • Add native IN (or AMONG) and BETWEEN operators to VB

                                      Instead of
                                      If x = 3 OR x = 8 or x = 12
                                      I should be able to type:
                                      If x in {3, 8, 12}

                                      And instead of
                                      If x>=2 and x<=10
                                      I should be able to type
                                      If x between 2 and 10
                                      (similar to SQL).

                                      4 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 →
                                      • Exception-type list after the Catch keyword

                                        Try
                                        ....PossibleException()
                                        Catch aException, bException, cException
                                        ....MessageBox.Show("a or b or c ERROR")
                                        End Try

                                        In addition, I'd like to propose a reserved keyword wich can represent the Exception object of the current Try-Catch block for example with the following built-in and hidden declaration:
                                        CurrentException As Exception

                                        Try
                                        ....PossibleException()
                                        Catch aException, bException, cException
                                        ....MessageBox.Show(CurrentException.Message)
                                        End Try

                                        4 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  ·  6 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Compile time properties such as Name and Type acessible via '.#'

                                          I suggest a new selector, .#, so we can access compile time information, such as elements names, unamed object types, etc, in a more practical way.

                                          Suggested properties:

                                          .#Name - the element name
                                          .#Type - the element type
                                          .#ElementType - the element type of a List item
                                          .#Ref - "address" of a method (may be used instead of AddressOf)


                                          'example 1 -- preventing hardcoding an element name
                                          If PropertyChangedName = Target.Strength.#Name Then
                                          ...
                                          End if


                                          'example 2 -- mannualy creating an anonymous type element
                                          Dim Enemies = (
                                          from N in EnemyList
                                          Select New With {
                                          .Name = N.Name,
                                          <lots…

                                          4 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