Tuesday Jan 21, 2014

PHP 5.5 Support

Hi all! After few weeks of inactivity we would like to introduce you some of new features which will be available in NetBeans 8.0. Today we will show you PHP 5.5 support.

[Read More]

Tuesday Aug 13, 2013

Improve Your Code With New Hints

Hi all! After few weeks of inactivity we are here again and we want to show you some new hints which will try to improve your code in NetBeans 7.4 (at least we hope so ;-). So here they are:

[Read More]

Thursday Mar 28, 2013

Twig Braces Matching

Hi all! Here we are again with new features for next NetBeans release. Today we would like to talk about braces matching in Twig templating support.

[Read More]

Thursday Nov 22, 2012

Another Twig Improvements

Hi all! We are here again to intorduce you some of our new NetBeans 7.3 features. Today we'll show you some another Twig improvements.

[Read More]

Wednesday Oct 17, 2012

Ambiguous Comparison Hint

Hi everybody! Today we would like to show you some new hint which will be available in NetBeans 7.3. It's called Ambiguous Comparison hint.

[Read More]

Thursday Oct 04, 2012

Generated Methods with Type Hints

Generated Methods with Type Hints Hi all! Today we would like to introduce you just another feature from upcoming NetBeans 7.3. It's about generating setters, constructors and type hints of their parameters.

[Read More]

Wednesday Apr 18, 2012

How To Fix Your Use Statements?

Fix Uses... actionToday we would like to introduce you our new feature for NetBeans 7.2 which is called Fix Uses....

[Read More]

Tuesday Feb 28, 2012

Improved Code Folding

Improved Code FoldingToday we would like to talk about improved code folding.

[Read More]

Monday Feb 20, 2012

Improvements in Coloring

Improvements in ColoringToday we would like to introduce you some of our new coloring features which will be available in NetBeans 7.2.

[Read More]

Tuesday Jan 24, 2012

Identical Comparison Hint

PHP Editor hintsToday we would like to introduce you some of our new hints. This one is called Identical Comparisons.

[Read More]

Thursday Oct 20, 2011

Rectangular Selection

If you use development build, you probably noticed that NetBeans editor added Rectangular Selection action. I don't need this functionality every day, but it can be helpful in some case. One of such case is when you need to delete line numbers in a text  or code copied from  a tutorial. Like on the picture below.



You can select the rectangle after pressing Rectangular Selection toggle button in the editor toolbar or pressing CTRL+SHIFT+R shortcut. 



The selection can be easily done with mouse or keyboard. When you use keyboard, just place the caret on a corner, keep down SHIFT  and with the arrows keys you select what you need. 



When the selection is done, you can easily delete all the line numbers with pressing DELETE key. Then you have to exit from the rectangle selection mode (CTRL+SHIFT+R or toggle button in the editor toolbar).


If you write a text , then the text is placed on every line in the selected area. This can be useful for example for changing access modifiers of more fields in a class at once. 



Do you use the rectangular selection? For which cases? 

Tuesday Nov 24, 2009

Removing Trailing Spaces

Last week, when I was at the IPC 2009 conference, a some user ask me whether NetBeans removes trailing spaces. It was one question from many and I would like to clarify how it works in NetBeans 6.0 - NetBeans 6.8.

Basically it works automatically on save. So when you invoke Save action then the trailing spaces should be removed from the file. There are two exceptions, when the spaces are not removed from a line:

  • The line wasn't changed. The main reason for such behavior is that usually you don't want to have unnecessary changes in the diff, if the files comes from a VCS. So unchanged lines are not touched and if there is a space at the end of such line, then is not removed. When you edit the line then the spaces are removed on save as well.
  • The line where the caret is located. When you invoke Save action, then the position of the caret is not changed. But all trailing spaces after caret are removed.

If you want remove all trailing spaces in the file, you have to invoke action Remove Trailing Spaces from Source menu by hand.

About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
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