Auto Indent

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
dvanatta
Posts: 7
Joined: Tue Jul 03, 2007 11:41 pm

Auto Indent

Post by dvanatta »

I'm trying to understand when Auto Indent kicks in. I created a function like:
function Test()
{
$i=2;
}

After typing the first bracket and pressing the Enter key I expected the next line to indent but it didn't. I checked Preferences and Auto Indent is checked and set to 2.

What am I missing?
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

I might have it wrong but auto indent seems to wait until you indent first. so if you indented your first line in the function and hit enter, the next line would be auto-indented.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Auto-indent makes the next line be indented like the previous one, it does not analyze or beautify code. This is standard across all code editors.

Now we are currently designing auto-curly-brace-complete and that feature will allow to both generate { and } braces and also indent the caret. But that is completely different feature.
Karlis Blumentals
Blumentals Software
www.blumentals.net
dvanatta
Posts: 7
Joined: Tue Jul 03, 2007 11:41 pm

Post by dvanatta »

Karlis wrote:Now we are currently designing auto-curly-brace-complete and that feature will allow to both generate { and } braces and also indent the caret. But that is completely different feature.
That's the feature I'm wanting! I look forward to it.
Post Reply