NetBeans Removing Trailing Whitespace on Save and Tabs to Spaces?

For your first question how to set NetBeans to remove trailing whitespace the answer is that there is no setting (at the moment) to control that. It happens automatically, but not to every line. Whitespace is only removed from the lines you edit (or from the entire file if invoked manually).

See Petr Pisl's blog entry titled Removing trailing spaces for a more complete explaination. (Note that even though he is blogging about NetBeans' PHP features, this particular feature applies to the basic editor shared by all NetBeans supported languages. ).

For your first question, how to set NetBeans to remove trailing whitespace, the answer is that there is no setting (at the moment) to control that. It happens automatically, but not to every line. Whitespace is only removed from the lines you edit (or from the entire file if invoked manually).

See Petr Pisl's blog entry titled "Removing trailing spaces" for a more complete explaination. (Note that even though he is blogging about NetBeans' PHP features, this particular feature applies to the basic editor shared by all NetBeans supported languages. ) For your second question, set the editor to automatically make tabs into spaces as you type, you can find that setting in the Editor Formatting options: Click on the Tools menu, and choose Options Click on Editor in the top row of icons Click on the Formatting tab In the Language field, ensure that All Languages is selected In the Category field, ensure that Tabs And Indents is selected Check the box for Expand Tabs to Spaces For each additional language that is available in the Language field, check that either Override Global Options is not checked, or that Expand Tabs to Spaces is also checked for that language.

Click OK That will make sure that when you hit the tab key the specified number of spaces is inserted rather than a tab character. As above with whitespace removal, any existing tabs in the file are left as-is unless you invoke the manual command to change the entire file. (Moreover, even if you edit a line with tabs on it--leaving the tabs in place--the editor will not convert them to spaces.

Only new instances of hitting the TAB key are controlled by this option. ).

1 "For your first question, how to set NetBeans to remove trailing whitespace, the answer is that there is no setting (at the moment) to control that. " This is available in 7.0 now, FYI. – Alex Howansky Jun 15 at 15:39.

For the first question, Netbeans 7.0 has now a built-in solution. You can find it in: Tools > Options > Editor > General > When saving files > Remove Trailing Whitespace: Never / Always / For Modified Lines Only.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions