Re: auto indentation

From: Date: Wed, 28 Apr 2010 02:23:35 +0000
Subject: Re: auto indentation
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-304690@lists.php.net to get a copy of this message
On Tuesday 27 April 2010 16:55:45 Ashley Sheridan wrote: > On Tue, 2010-04-27 at 16:33 -0400, David McGlone wrote: > > Hi everyone. > > > > I got a quickie LOL > > > > is there a way to auto indent code. I'm using Kate and I have it set so > > the tab is only 4 spaces, but I was wondering if there was an easier way > > than to have to hit the tab key 1x then 2x then 3x then 2x then 1x to > > create nice laid out code like this: > > > > ----- > > ----- > > ----- > > ----- > > ----- > > ----- > > ----- > > ----- > > ----- > > > > or: > > > > function() { > > > > function here > > } > > I use Kate too, and the indentation changed slightly in KDE 4. In the > configure dialogue window, go down to the Editing section in the left > menu and set the number of spaces to use in both the General tab (under > Tabulators) and the Indentation tab (under Indentation Properties. If > they are both different then you have to hit the tab key 4 times in > order for your spaces to be replaced by a tab character. Thanks Ash. What is your preferences for indenting code? Do you have it set so you don't have to hit the tab key at all? I set my numbers in kate to 4 what about you? -- Blessings, David M.

« previous php.general (#304690) next »