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 230814 - Auto creation of * in comments should only apply to /** blocks and not to /* blocks
Summary: Auto creation of * in comments should only apply to /** blocks and not to /* ...
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal with 5 votes (vote)
Assignee: junichi11
Depends on:
Reported: 2013-06-06 01:58 UTC by Manachi
Modified: 2019-01-16 12:40 UTC (History)
2 users (show)

See Also:
Exception Reporter:

proposed patch (26.08 KB, patch)
2017-07-12 04:48 UTC, junichi11
Details | Diff
screenshot of Options (42.14 KB, image/png)
2017-07-12 04:49 UTC, junichi11

Note You need to log in before you can comment on or make changes to this bug.
Description Manachi 2013-06-06 01:58:27 UTC
When creating a comment block using /* */ and then clicking enter within that block to put in a new line, Netbeans currently automatically creates a new *.  This feature should only occur when the comment block uses the format /** */.

DocBlocks/phpDocs/javaDocs style comments are different to normal multiline comments. DocBlocks are very specific circumstances, and standard multiline comments with /* */ should be left alone without any auto-*-formatting. Or there should at least be an option to disable this.
Comment 1 Dusan Balek 2013-06-06 09:11:12 UTC
Fixed in jet-main. Block comment formatting settings (Tools -> Options -> Editor -> Formatting -> Java -> Comments) should be respected.
Comment 2 Quality Engineering 2013-06-10 02:20:14 UTC
Integrated into 'main-golden', will be available in build *201306100004* on (upload may still be in progress)
User: Dusan Balek <>
Log: Issue #230814: Auto creation of * in comments should only apply to /** blocks and not to /* blocks - fixed.
Comment 3 TheBlackMan 2014-03-12 10:20:05 UTC
I regretfully need to reopen this bug.

There is no way to disable automatic asterisk insertion in 8.0 RC1 for PHP - Linux x64 version.

Some debug info follows:

Product Version: NetBeans IDE 8.0 RC1 (Build 201402242200)
Java: 1.7.0_51; OpenJDK 64-Bit Server VM 24.51-b03
Runtime: OpenJDK Runtime Environment 1.7.0_51-b31
System: Linux version 3.2.12-gentoo running on amd64; UTF-8; pl_PL (nb)
User directory: /home/tuxworker/.netbeans/8.0rc1
Cache directory: /home/tuxworker/.cache/netbeans/8.0rc1
Comment 4 Ondrej Brejla 2014-03-12 10:30:02 UTC
There never was such an option.
Comment 5 TheBlackMan 2014-03-13 09:58:59 UTC
Well, there is for JAVA. Why shouldn't there be one for PHP ?
Clearly looks like a bug to me.
Comment 6 Manachi 2014-03-18 05:08:31 UTC
Yeah it looks like this hasn't been fixed for PHP yet.
Comment 7 tastro 2014-08-06 16:26:58 UTC
Please fix this for PHP. It's really annoying. :(
Comment 8 pinbender 2015-01-16 17:12:43 UTC
This is also an issue for the C++ plugin, and is still exceedingly annoying.
Comment 9 Manachi 2015-03-30 23:53:03 UTC
This issue is still occurring. Can this bug be resolved?
Comment 10 Jax_Cavalera 2015-07-05 23:55:14 UTC
This is still happening in Dev Build : 201507040001 for PHP
Comment 11 eric1337 2015-07-17 17:18:59 UTC
Please fix this!
Comment 12 hmundt_ibl 2016-01-28 13:43:35 UTC
Please fix this for PHP.
Comment 13 junichi11 2016-02-06 06:49:04 UTC
Just a workaround: "Shift" + "Enter"
Comment 14 junichi11 2016-02-06 09:47:23 UTC
(In reply to junichi11 from comment #13)
> Just a workaround: "Shift" + "Enter"

NOTE: If you would like to divide a line to two lines, you cannot use it. In such case, please try using "Ctrl" + "Enter" as another workaround.

Comment 15 rotaercz 2017-01-19 14:29:40 UTC
So any update on fixing this for PHP?
Comment 16 martin145 2017-05-18 14:36:30 UTC
PLEASE FIX this for PHP. It's really annoying !!
Comment 17 Manachi 2017-05-20 02:44:15 UTC
Kind of surprised this priority was downgraded. Just to frame this in a slightly different way incase it's unclear. Netbeans doesn't currently allow you to do simple multiline comments in php without breaking the formatting. Multi line comments should be a trivial feature of any simple text editor or basic IDE, let alone a mature one like Netbeans.
Comment 18 junichi11 2017-07-12 04:48:36 UTC
Created attachment 164744 [details]
proposed patch

I'll apply the patch after NetBeans 9.0 is released.

Thanks for your understanding.
Comment 19 junichi11 2017-07-12 04:49:33 UTC
Created attachment 164745 [details]
screenshot of Options
Comment 21 Carolinewebb 2019-01-16 12:40:28 UTC
Although it is fixed bug still happy to find details about bug which is product of PhP, version 8.0.2, run with all hardware and but is all about Auto creation of * in comments should only apply to /** blocks and not to /* blocks.