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 246330 - Code Completion causing odd formatting
Summary: Code Completion causing odd formatting
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-07 12:26 UTC by adam_felix_fps
Modified: 2016-05-25 09:27 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 adam_felix_fps 2014-08-07 12:26:11 UTC
When choosing an option from code complete for a function from elsewhere within my project NetBeans is adding extra tabs onto the beginning of the line which I then have to go back and delete.  Although I cannot share the actual code I will post a pseudo code example:

I enter the following:
SomeStaticDataType::{NetBeans brings up the members}
when I choose a member the whole line jumps to the right by two tab widths so it looks like this:
        SomeStaticDataType::selectedMember()

I am not sure what is triggering this weird formatting. I have checked in Formatting Options and cannot see any reason for it in there.  I would expect it to stay in the same position as it was before.

Adam
Comment 1 adam_felix_fps 2014-08-07 12:33:16 UTC
This is possibly the same bug as here 245572.  It looks like it is definitely an issue especially as it was previously reported by the netcat team too in the forum.  I can test with a dev build if that would help although I am reluctant to reinstall my main 8.0 version at the moment as I would lose a lot of customised options.
Comment 2 adam_felix_fps 2014-08-27 14:50:12 UTC
Any comments from the team regarding this?
Comment 3 Tomas Mysik 2016-05-25 09:27:10 UTC
I am afraid that we need the code above that line - that is what causes formatter to think that indentation should be done. Please, create a sample file, reopen this issue and attach it here.

Thanks.