Newbie: Comment alignment problem

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

Hi,
I hope I am not way off topic here....

I have the following problem that i can't seem to find an answer at the Editor Settings:

'my if comment
If myradiobutton.Checked Then
Dim x as Integer

'my else comment <------ not aligned with Else !
Else
Dim y as Int16
End If

All i want is to align the second comment with Else. Is there a way to force the editor to do that?


BTW (rhetoric question) Is it so hard for the MS developers to come up with a multicomment way in VB? Something like /* .... */ in C++ ?

TIA
-steve
 
steve said:
I hope I am not way off topic here....

Your question is on-topic here.
I have the following problem that i can't seem to find an answer at
the Editor Settings:

'my if comment
If myradiobutton.Checked Then
Dim x as Integer

'my else comment <------ not aligned with Else !
Else
Dim y as Int16
End If

All i want is to align the second comment with Else. Is there
a way to force the editor to do that?

I have set "Tabstops" -> "Indentation" set to "Block", which will prevent
pretty listing from indenting the comment. Notice that this will require
you to indent parts of the code yourself.
BTW (rhetoric question) Is it so hard for the MS developers
to come up with a multicomment way in VB? Something like
/* .... */ in C++ ?

VB is not an ASCII art language, and thus there is currently no equivalent.
Notice that there are toolbar buttons/menu items + shortcuts in the VS.NET
IDE which can be used to comment/uncomment a block of code.
 
Thanx Herfried ! always helpful and knowledgable!

I'll try the settings and see if i can live with doing some of the
indentation work myself ... :)

ASCII art ??? I am not sure I understand what exactly you mean. I guess It
cannot be done because it's parsed?
I didn't know there are block-comment options! I'll look for them. I
*definetely* need something like that.

thanx again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top