473,386 Members | 1,644 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,386 software developers and data experts.

indenting

bob
What tool do most of you people use to indent your code? Doing so by
hand is a bit tedious, I think.

Sep 24 '05 #1
9 1810
Ian
bo*@coolgroups.com wrote:
What tool do most of you people use to indent your code? Doing so by
hand is a bit tedious, I think.

A decent text editor! In my case emacs, but I'm sure just about every
IDE out there has auto indent.

Ian
Sep 24 '05 #2
bo*@coolgroups.com wrote:
What tool do most of you people use to indent your code?


The tab key.

--
Salu2
Sep 24 '05 #3
bo*@coolgroups.com writes:
What tool do most of you people use to indent your code?


The "tab" key.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
Sep 25 '05 #4
dev c++

Sep 25 '05 #5
hde
Emacs >:-}, C/C++ mode.

Harley D. Eades III

Sep 25 '05 #6
* bo*@coolgroups.com:
[off-topic in clc++]

What tool do most of you people use to indent your code? Doing so by
hand is a bit tedious, I think.


The 'Tab' key + editor smarts.

Adding a standardized comment at the very top about indent and tab size:

// indent = tab = 4.

A great many editors support indenting a block by marking it and pressing
'Tab', and similarly, undenting by pressing 'Shift Tab'.

Some projects, e.g. Boost, have instead standardized on always using spaces.
I think that's counter-productive. Really, I hate code that uses spaces for
indenting. Ordinary navigation requires more key-presses. And if you want to
present that code using a proportional font, then there is in general nothing
that indicates whether a space is a just a space or whether it's used to line
up text vertically (spaces at the start of a line are a special case).

Not that I've ever done that proportional font presentation. However, some
folks (including Bjarne Stroustrup) do. It looks rather neat in an article.
Also, code using tab characters can alway be automatically converted to code
using spaces, e.g., the Visual Studio editor does this, and it should always
be done before posting code on Usenet or using it in an article, because of
different tab size conventions; it's trivial to do and no problem. Conversion
of spaces code to code with tabs is however in general impossible to fully
automate, although the mentioned editor attempts to do that, too: one example
where it requires manual editing is right hand comment vertical line-up.

XFUT: [comp.programming]

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Sep 25 '05 #7

<bo*@coolgroups.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
What tool do most of you people use to indent your code? Doing so by
hand is a bit tedious, I think.


See http://www.semdesigns.com/Products/F...Formatter.html
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Oct 1 '05 #8

bo*@coolgroups.com wrote:
What tool do most of you people use to indent your code? Doing so by
hand is a bit tedious, I think.

Exclipse, hands down

ctrl-i

Oct 1 '05 #9
bo*@coolgroups.com wrote:
What tool do most of you people use to indent your code? Doing so by
hand is a bit tedious, I think.


vim:
set tabstop=4 shiftwidth=4
=G

--
Marcus Kwok
Oct 5 '05 #10

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

Similar topics

0
by: David Ehmer | last post by:
Appreciate any ideas about what might be happening with these pages in IE5.2 Mac. In summary the 2nd paragraph or list item is indenting to the right. paragraphs of list items after the 2nd...
2
by: RobG | last post by:
Some posters have been critical of the lack of formatting in some posts. Pleae be aware that posting through the Google group's web interface removes *all* leading white space - tabs, spaces, the...
1
by: sh4r4d | last post by:
Can any tell how this automatic C indenting done in some editors like Vim, Emacs (in C-mode), because I want to change my program which now give result after seeing full grammer, while these...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
2
by: Leon Friesema | last post by:
Hiyall! I have a RichTextBox inside a UserControl which should be able to indent a block off text (or UnIndent for that matter) like the SourceEditor of VS2003 or WinWord does. All controls on...
5
by: Jean Pion | last post by:
Dear readers, If you use some funtion to generate html code like: <? function display_stuff( parameters) { echo "<p>\n"; echo " <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"...
7
by: Harrie | last post by:
Hi group, I want to indent existing XML files so they are more readable (at least to me). At this moment I'm looking at the XML files OpenOffice.org's Writer application produces in it's zipped...
0
by: D. Shane Fowlkes | last post by:
The Smart Indenting "feature" is driving me absolutlely crazy in VWD. Problem: VWD in Code View insists on tabbing a lot of my code over to it's own liking and effects mainly my comments in the...
6
by: eugene.morozov | last post by:
Hello, Does anyone know how to make python-mode correctly indent nested lists and dictionaries. I hate indenting Django url patterns and Zope Archetypes schemas by hand, because python-mode...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.