Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Curly Brackets Formatting Netbeans [duplicate]

Tags:

java

netbeans

I've been looking in the options of Netbeans, but I cannot find a way to change the default location of the curly brackets

public class foo {

}

to this

public class foo
{

}
like image 534
Dog Avatar asked Sep 05 '12 04:09

Dog


People also ask

What is {} used for in Java?

Different programming languages have various ways to delineate the start and end points of a programming structure, such as a loop, method or conditional statement. For example, Java and C++ are often referred to as curly brace languages because curly braces are used to define the start and end of a code block.

How to format NetBeans?

To format all the code in NetBeans, press Alt + Shift + F. If you want to indent lines, select the lines and press Alt + Shift + right arrow key, and to unindent, press Alt + Shift + left arrow key.

What do brackets mean in code?

What Does Bracket Mean? Brackets, or braces, are a syntactic construct in many programming languages. They take the forms of "[]", "()", "{}" or "<>." They are typically used to denote programming language constructs such as blocks, function calls or array subscripts. Brackets are also known as braces.

How to generate Javadoc NetBeans?

To generate Javadoc for a project, select Run > Generate Javadoc from the menu bar or, right-click the project in the Projects window and choose Generate Javadoc. The IDE will generate the Javadoc and open it in a separate browser window.


1 Answers

Look in Tools -> Options -> Editor -> Formatting.

Ref: http://forums.netbeans.org/topic8932.html

like image 132
Infiltrator Avatar answered Oct 03 '22 01:10

Infiltrator