This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 131596 - Indentaion doesn't work correctly
Summary: Indentaion doesn't work correctly
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks: 131609
  Show dependency tree
 
Reported: 2008-03-31 10:26 UTC by Petr Pisl
Modified: 2008-04-16 12:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-03-31 10:26:39 UTC
When you press enter the indentation is not smart enough. It's just put the cursor on the column, where the line above
begins. Also the indentation doesn't reflect number of spaces, which are defined in the options.
Comment 1 Vitezslav Stejskal 2008-04-09 10:50:17 UTC
It should be smarter now. It should indent code blocks denoted by curlies {} properly. It still does not support the
alternate control structures like:

if ($whatever):
  echo "Hey!";
else:
  echo "Cool!";
endif;

It may not work in some other cases too, but please be more specific. I'll keep this defect open to gather some
feedback. So, if you find a situation when indentation is not correct please describe it here. Ideally with a code
snippet and steps how to reproduce it. Use the pipe char '|' to mark the position of the caret. Thanks a lot

The code should also pick up the indentation settings from Tools-Options. If it does not or does it wrong, please let me
know. Thanks
Comment 2 Vitezslav Stejskal 2008-04-16 12:02:55 UTC
Ok, since people tend to file separate issues for each broken scenario I'm closing this issue as fixed. I've fixed most
of the issues and the indentation works correctly in most situations. Please file separate issues with concrete examples
when things don't work as expected.