473,413 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

re-line up source

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
Feb 1 '08 #1
6 1204
"tshad" <ts***@dslextreme.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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.
>
Thanks,

Tom

Feb 1 '08 #2
"Michael C" <mi**@nospam.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"tshad" <ts***@dslextreme.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>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.
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
>
>>
Thanks,

Tom


Feb 1 '08 #3
On 31 jan, 23:15, "tshad" <ts...@dslextreme.comwrote:
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
Feb 1 '08 #4
<ve******@gmail.comwrote in message
news:50**********************************@i12g2000 prf.googlegroups.com...
On 31 jan, 23:15, "tshad" <ts...@dslextreme.comwrote:
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
Feb 1 '08 #5
<ve******@gmail.comwrote in message
news:50**********************************@i12g2000 prf.googlegroups.com...
On 31 jan, 23:15, "tshad" <ts...@dslextreme.comwrote:
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
Feb 1 '08 #6
"tshad" <tf*@dslextreme.comwrote in message
news:ep**************@TK2MSFTNGP03.phx.gbl...
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
Feb 4 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
8
by: Lothar Scholz | last post by:
Because PHP5 does not include the mysql extension any more is there a chance that we will see more Providers offering webspace with Firebird or Postgres Databases ? What is your opinion ? I must...
1
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id ...
1
by: Brian | last post by:
I have an array like this: $events = array( array( '2003-07-01', 'Event Title 1', '1' //ID Number (not unique) ), array( '2003-07-02',
1
by: Clarice Almeida Hughes | last post by:
tenho um index onde tenho o link pro arq css, como sao visualizados pelo include todas as paginas aderem ao css linkado no index. so q eu preciso de alguns links com outras cores no css, o q devo...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.