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 156373 - Smarter indentation
Summary: Smarter indentation
Status: CLOSED WORKSFORME
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 19:29 UTC by jvloothuis
Modified: 2017-06-22 18:15 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jvloothuis 2009-01-06 19:29:37 UTC
It would be nice if the indentation for Python could work like these two examples:

A. Indent four spaces for opening chars: [ ( {
Example:

def foobar(<ENTER>
    <CURSOR>):
    
Typing bar will make the code look like:

def foobar(
    foo, bar):


B. Indent to just after the opener for chars: [ ( {
Example:

def foobar(foo,<ENTER>
           <CURSOR>):

Typing bar will make the code look like:

def foobar(foo,
           bar):
Comment 1 Jenselme 2017-06-22 18:06:35 UTC
As far as I know, this now works. If this is still a thing, please reopen and accept my apologies.
Comment 2 Jiri Kovalsky 2017-06-22 18:15:54 UTC
Thanks for your evaluation Julien. Closing then.