From the course: Learning NetBeans

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Look and feel of your code

Look and feel of your code

From the course: Learning NetBeans

Start my 1-month free trial

Look and feel of your code

- [Instructor] Let's talk about the look and feel of your code. Sometimes your code might be somewhat disorganized. You might have some indents that do not line up the way that you want them to. For example, if I mess up line 16 and line 21 through 23, also the last line here 26 with that curly brace, there's a quick way to have NetBeans automatically format it. And that's by going to Source and clicking Format. Or you can use this shortcut alt shift f. And once I do that, things are just back to normal. Or at least the way NetBeans expects it to be looking. See the plus signs here are a little bit aligned slightly differently. But overall, it is uniform. Now along that topic, there might be something like the curly braces. Notice that when we put focus on an opening curly brace, it highlights the closing curly brace which is pretty cool because sometimes things can get hairy if you have a lot of nested curly braces and you're trying to find which one that closes. But let's say you're…

Contents