How do I get tabs to copy properly in Netbeans?

47 views Asked by At

When I copy and paste (for example) a function, the first line is tabbed correctly, but every line after is tabbed back too much. While this is at most a minor annoyance, I'd still like to fix it. I can't seem to find a setting that controls this, but if there is one, I would like to know. Thank you for your help.

1

There are 1 answers

3
Vishal Bharti On BEST ANSWER

Just navigate to Source > Format and click on format it automatically format the whole function.

Shortcut : Alt+Shift+f

Make sure you have done all formatting . Link for detail formatting : https://blogs.oracle.com/netbeansphp/entry/formatting_tabs_and_indents