sandip chitale's blog    Sandip Chitale's blog (scblog)
NOTE: I have moved many of my modules to NetBeans Plugin Portal . Please check there for latest versions of modules described on this blog.
20060922 Friday September 22, 2006

TIP: Dealing with trailing whitespaces in Netbeans editor

Expose trailing whitespaces using Find dialog

Delete trailing whitespaces using Replace dialog - before

Delete trailing whitespaces using Replace dialog - after

 

Lame tip huh?

 


Posted by sandipchitale ( Sep 22 2006, 12:51:05 AM PDT ) Permalink Comments [3]


Trackback URL: http://blogs.sun.com/scblog/entry/tip_delaing_with_trailing_whitespaces
Comments:

for white spaces instead of [ \t], you can use \s 3 less keystrokes :-)

Posted by bhaskar on September 23, 2006 at 07:47 AM PDT #

You are right. Your regular expressions expression works too. The JDK documentation on Patter says:

\s A whitespace character: [ \t\n\x0B\f\r]

which includes newline, form feed, carriage return also. That is why I did not use it. However there some explaination of it here: http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html#DOTALL

Posted by Sandip on September 23, 2006 at 11:31 AM PDT #

Yes .. or simply main menu Source | Remove Trailing spaces ... I know it's no so geeky, but it works ;) (NB Dev)

Posted by Marian on September 23, 2006 at 11:51 PM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed








« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Get NetBeans 5.5

Locations of visitors to this page

Today's Page Hits: 49


XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

XML
All
/Creator
/General
/Hobby
/Java
/JavaScript
/Mozilla
/NetBeans
/Ubuntu
/VisualWeb
/VisualWebPack
/Web 2.0

scblog
scblog