Replacing with new line in eclipse using regular expression:
Regular expression for the new line in eclipse:
For eg:
Convert from :
public String
getAddress() {
return address;
}
To:
public String getAddress ()
{
return address;
}
Check the regular expression checkbox.
In Find: \)
\{
Replace with: )\n\t\{
OR
)\R\t\{
OR
)\R\t\{

No comments:
Post a Comment