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.
Searching (^F) for empty lines with a regex of ^$ hangs the editor for about 10 seconds, with no results. The file I was searching on was 6400 lines with many empty lines. Product Version: NetBeans IDE Dev (Build 201503250001) Updates: Updates available Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.14.27-100.fc19.x86_64 running on i386; UTF-8; en_US (nb) User directory: /home/toddb/.netbeans/dev Cache directory: /home/toddb/.cache/netbeans/dev
Fixed in http://hg.netbeans.org/jet-main/rev/4856cb165fcb It will stil get 0 results, since Netbeans search allows only matches with more than 0 length, but it is now fast.
... then how would you search for empty lines within NB?
Integrated into 'main-silver', will be available in build *201507090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4856cb165fcb User: Milutin Kristofic <mkristofic@netbeans.org> Log: #251743 - Search for ^$ hangs editor for a while
I am sorry there never been in Netbeans option to search for empty lines (I double checked this with NB 7.1) I made enhencement https://netbeans.org/bugzilla/show_bug.cgi?id=253692 I believe it should be possible, but it would make sense with multiline regexp. So you could delete empty lines with regexp. I would propose this for next release of Netbeans
Very good! Thanks.