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

    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…)
      2 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
    • Collection initializers for read-only collection properties in VB.NET

      I'm very happy that Microsoft is committed to VB.NET have the same features as C#.
      One feature I use extensivle in C# is collection initializers. I've just noticed that VB.NET supports these but not for read-only class properties.
      I found at http://msdn.microsoft.com/en-us/library/dd293617.aspx that if a collection has a an Add method, it is used to initialize the variable. This should also apply to read-only collection properties.

      Here is compilable C# code showing the feature working:

      using System;
      using System.Collections.Generic;

      namespace ConsoleApplication3
      {
      class Class1
      {
      private readonly List<Int32> list = new List<Int32>();

      public List<Int32> ListProp
      {
      get
      {
      return this.list; …

      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…)
          0 comments  ·  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 →
          • the most wanted feature in basic.net now (and still) is *comments within multiline statements*

            I have to repeat the begging for comments within multiline statements in visual basic... yes, I know you refused to do that for me and numerous others over the last 6-7 years stating that it is "by design"... so what? our continuous and numerous complaints just show that this request has its roots, so do not make excuses of design... *change that design detail* and everything will be ok... mr. hejlsberg on /BUILD/ conference talks about 'paste as c#' and 'paste as vb.net' and you are not able to convince yourself of the need to change that tiny design glitch...…

            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…)
              2 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →

              Hey gjuro,

              We’ve considered inline/multiline comments in VB several times. In the past it’s been a very expensive thing to implement because of the way the language parser was designed and the way the IDE integrates with it. The VB and C# code bases are, for historical reasons, very different. Anyway, in Roslyn such a thing isn’t as difficult anymore but we still question the value. In fact “is it worth it” is the real obstacle at this point.

              We don’t actually see much use of inline/multiline comments even in C# which makes us even more hesitant to add them to VB.

              Now, what we have been able to make work in Roslyn is this:

              Dim q = From x In y ’ This is a from clause
              Where x < z ’ And this is the where
              Select x ’ This select is redundant

              That is, comments after implicit…

            • add // for a comment and eat up semicolon at the end of the line

              while pasting to VB.NET a sample I managed to develop in C# I understood that most of reediting needed consisted of changing // into ' for starting comments and deleting terminating semicolons

              by chaning this two tiny details you would greatly help porting C# to VB.NET code

              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 →
              • The "Is" keyword let be a real reference in the Select block.

                Select Case i
                Case 1, 5, 10 To 20
                FuncSpec()
                Case IIf(Is Mod 2 = 0, Is, Nothing) ' the "Is" keyword is a read-only reference of the "i" variable
                FuncEven()
                Case IIf(IsPrime(Is), Is, Nothing) ' the "Is" keyword is a read-only reference of the "i" variable
                FuncPrime()
                Case Else
                FuncOther()
                End Select

                'Advantages:
                ' - branching by any kind of case (not only by equality or range or comparison operator)
                ' - no need to convert to If block (what is redundant and less readable)

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

                  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  ·  2 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                  • The idea: "Visual Basic".

                    Summary: Bring back an Independent VB IDE, capable to create all kind of applications and solutions. Mobile, WinRT, WinForms, Web, Installers, images and other media files, help files, reports and charts. Capable to do it by using WebForms, Web MVC/Razor, Silverlight (not just Lightswitch but Silverlight really), and WPF of course. And if Microsoft can do it, OS multiplatform. This time, the IDE must be purely for the VB language.

                    BASIC as a programming language is not "just for kids", as is often read in forums and sometimes hear from other programmers. This is a high-level language, easy understanding and…

                    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…)
                      2 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →
                    • using the API of Master Data Services(SQL Server2008)inASP

                      How I can create Model, Entity & Attributes in MDS via Web-Application and how I can work with attribute values (select, update, edit or delete the values)

                      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 →
                      • 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 →
                        • Implement a Strictly .net mode for VB.net.

                          implement a compiler switch that when turned on. vb.net is no longer backwards compatible with vb6.

                          Option DotNetOnly On

                          So now you'll get compiler errors if you use any on the vb6 keywords and legacy functions.
                          A c# like approach to shared methods, only accessible via the class, not an instance.

                          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…)
                            2 comments  ·  Languages - Visual Basic  ·  Flag idea as inappropriate…  ·  Admin →

                            Hey Adam,

                            Thanks for the suggestion. Could you be more specific on what specific things you’d want disallowed and very specifically why they “don’t make the cut”. I ask because as written this suggestion could mean different things to different people; “VB6 keywords” “VB6 compatibility” isn’t very meaningful objectively. For instance AddressOf, Alias, And, As, Boolean, ByRef, Byte, ByVal, Call, Case, Date, Declare, Dim, Do, Double, Each, Else, ElseIf, End , Exit, False, For,Function, Get, GoTo, If, In, Integer, Is, Let, Lib, Like, Long, Loop, Me, Mod, New,Next, Not, Nothing, Object, On, Option, Optional, Or, Private, Property, Public, ReDim, REM, Resume, Return, Select, Set, Single, Static, Step, Stop, String, Sub, Then, To, True, While, With, and Xor all are just some of the keywords which were in VB6 – I don’t imagine you’re suggesting disallowing all of them. Also it’s not very clear how you delineate what is .…

                          • Inline assignment inside while statement

                            I think VB developers miss the inline assignment inside while clause feature, which is already exist in c#
                            its great if we can find the equivalent for this in VB

                            while ((bytesRead = stream.Read(buffer, 0, buffer.Length)) > 0)
                            {
                            // Use the data you've read
                            }

                            'll be

                            While (bytesRead = stream.Read(buffer, 0, buffer.Length)) > 0
                            ' Use the data you've read
                            End While

                            i know the VB uses = as equality operator inside while, but while VB uses the same operator for assignment, perhaps we can find a proper solution for this

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

                              3 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 →
                              • Handles keyword in WPF

                                In Windows Forms for events is used Handles keyword, in WPF isn't. Please implements Handles keyword to the WPF.

                                3 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 →
                                • Implement Interface members Implicitly

                                  It 'll be nice if we can declare the interface members implicitly without mention the implemented member from the interface.
                                  In other words, we can write for example this

                                  Public Sub Method1()

                                  End Sub

                                  instead of

                                  Public Sub Method1() Implements InterfaceName.Method1

                                  End Sub

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

                                    3 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-Intellisense should suggest undefined variables from current context after writing "Dim..."

                                      Often, if i write a line of code, i start to write something and think this would be better split in more lines and use a new variable

                                      Basic example:

                                      result = (a + b) * c

                                      while writing the line, i think (a+b) is rather complex in one line, so just use a new temporary variable. But first I complete this line, if I already had defined this variable and write the "Dim" and the assignment afterwards.

                                      so, i write:

                                      result = x * c

                                      and afterwards i go some lines up and start to write

                                      dim x as...

                                      3 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 →
                                      • Enhanced Synclock

                                        I would like to propose support for an enhanced Synclock (lock in C#) construct that would, instead of waiting to acquire a lock - if there is already a lock - would instead exit the function containing the Synclock statement.

                                        What I am trying to simulate with this new construct is the below.

                                        Public Sub DoWork()

                                        '-- START OF CODE REQUIRING ENHANCED SYNCLOCK
                                        Static bHere As Boolean = False
                                        If bHere Then Return

                                        Try
                                        bHere = True

                                        '-- Do protected work here

                                        Catch ex As Exception

                                        Finally
                                        bHere = False

                                        End Try
                                        '-- END OF CODE REQUIRING ENHANCED SYNCLOCK

                                        End…

                                        3 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 →
                                        • Allow breaking of all lines in VB, at any interval

                                          Just like in the semi-colon languages, however, instead of the semi-colon, we can use 'shift + enter' to indicate a soft line break, just like in Word.

                                          We can use the (↵) symbol to indicate a line break.

                                          3 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