2 Replies - 4301 Views - Last Post: 28 February 2014 - 10:43 AM Rate Topic: -----

#1 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2263
  • View blog
  • Posts: 9,468
  • Joined: 29-May 08

Some potential language ideas for future versions of VB

Posted 24 December 2013 - 06:05 PM

Lucian Wischik post on his blog some potential language ideas for future versions of VB.

LINK

What do think about them?
What would you like add the VB language?

This post has been edited by AdamSpeight2008: 24 December 2013 - 06:06 PM

Is This A Good Question/Topic? 1
  • +

Replies To: Some potential language ideas for future versions of VB

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Some potential language ideas for future versions of VB

Posted 10 February 2014 - 02:32 PM

One thing that I keep wanting the ability to do is to be able to type Option <Strict|Explicit|Infer> <Off|On> and Imports <NameSpace>.<NameSpace>.... wherever I'm at in my code window and press enter and have it move those to the top of the code window where they belong. I know this sounds trivial but since this is where Option and Imports need to go, why not allow you to type your Option or Import statement on a line and press enter and it magically appear before the class?

I know I can click the Error Correct Option dropdown and apply the fix but I just think it would be nice to:

Dim con as New SqlConnection("SomeConnectionString")

'get the squiggly line but instead of grabbing the mouse and applying the fix, just type
Imports System.Data.SqlClient <Enter>

and that get's moved to the top of the code.

I do however like the idea of having the ability to do implicit line continuation on strings. I get so use to the line continuation that I forget when typing a long string that I have to follow another method to continue a string.

Also, inline comments would be cool
Was This Post Helpful? 0
  • +
  • -

#3 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2263
  • View blog
  • Posts: 9,468
  • Joined: 29-May 08

Re: Some potential language ideas for future versions of VB

Posted 28 February 2014 - 10:43 AM

You could set those options at the project level, CharlieMay. Then only add to the top of the code files where it differs, as those options can specific to a code file.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1