473,657 Members | 2,587 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1825
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.programmin g]

--
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.goo glegroups.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
1686
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 don't indent further, they just stay in line with the 2nd. Also seems to be affecting headings (h2 etc) and images. Seems to be a problem specific to this browser.
2
1299
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 lot. It also wraps at very short line lengths, making it something of a chore to use. Please allow some leeway for those posting via the web interface, for some there is no option. I've been forced to ditch my normal
1
1509
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 editor predict only seeing partial grammer.
102
5647
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 can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in begin/end statements etc" and today when I woke up I suddenly released a very simple solution for this...
2
4966
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 the form (except for the RichTextBox) have TabStop=False and I have a KeyDown event handler which calls the IndentSelection function. No problem with the indenting (I've watched when stepping through the code) except.. The e.Handled does not seem...
5
1822
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\" width=\"100%\">\n";
7
2259
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 "SXW" format (and they're one line, probably to save space, which I find hard to read). At first I thought I was going to do it with sed/awk or something like that, but then I remembered the xsl:output element with the indent attribute of XSL and...
0
990
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 code. First of all, I've searched the help files and searched forums.asp.net. I can't seem to find a solution so I thought I'd try here. When I look at Tools >> Options and look under Text Editor >> All Languages >> Tabs, it has a subtle...
6
1633
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 indents them in incorrect and ugly way. Here's how it should be: StringField('reference', widget=StringWidget( description='Position reference'
0
8306
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.