re-line up source

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

Isn't there a shortcut that will re-line up your source in VB2005? I have
source that I have copied and pasted in my page and it doesn't line up
correctly, which is fine for small code but larger code is a bit of a pain.

I thought I saw it somewhere but can't seem to find it.

Thanks,

Tom
 
tshad said:
Isn't there a shortcut that will re-line up your source in VB2005? I have
source that I have copied and pasted in my page and it doesn't line up
correctly, which is fine for small code but larger code is a bit of a
pain.

I thought I saw it somewhere but can't seem to find it.

You use the closing squiggly } in C#, which is what this group is for. Maybe
in VB just typing end sub will do it.
 
Michael C said:
You use the closing squiggly } in C#, which is what this group is for.
Maybe in VB just typing end sub will do it.

Actually, I did mean VS2005 not VB2005.

But I seem to remember someone mention a control key combination that will
do it. I know that normally when I add the brace it will adjust the line -
but not all the time.

BTW, just as aside - I hear the brace being called curley brace (as well as
squiggly) which I always thought was funny as it is a brace. The [] are
square brackets and <> are angle brackets and () are parenthesis. I never
could figure out why people call the {} curley braces. I am guilty of that
as well, until I thought about it :).

Thanks,

Tom
 
Isn't there a shortcut that will re-line up your source in VB2005?  I have
source that I have copied and pasted in my page and it doesn't line up
correctly, which is fine for small code but larger code is a bit of a pain..

I thought I saw it somewhere but can't seem to find it.

Thanks,

Tom

Select all source code and press Ctrl+K,F or Ctrl+E,F.
You can also use Ctrl+E,D to format the complete file
 
Isn't there a shortcut that will re-line up your source in VB2005? I have
source that I have copied and pasted in my page and it doesn't line up
correctly, which is fine for small code but larger code is a bit of a
pain.

I thought I saw it somewhere but can't seem to find it.

Thanks,

Tom

Select all source code and press Ctrl+K,F or Ctrl+E,F.
You can also use Ctrl+E,D to format the complete file
 
Isn't there a shortcut that will re-line up your source in VB2005? I have
source that I have copied and pasted in my page and it doesn't line up
correctly, which is fine for small code but larger code is a bit of a
pain.

I thought I saw it somewhere but can't seem to find it.

Thanks,

Tom
Select all source code and press Ctrl+K,F or Ctrl+E,F.
You can also use Ctrl+E,D to format the complete file

That was what I was looking for,

Thanks,

Tom
 
tshad said:
Actually, I did mean VS2005 not VB2005.

But I seem to remember someone mention a control key combination that will
do it. I know that normally when I add the brace it will adjust the
line - but not all the time.

If you remove and add the very last squiggly then it will re-align all code.

Michael
 

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