Eclipse how to reorganize variable names?

In my 15 year old java project, standard Java conventions are not respected, and the first letter of variable names is often capitalized.

I would like to reorganize my project into the first letters of the variables in lower case, especially in method signatures:

public void creerProfil(String CodeProfil, Profil ProfilACreer) throws Exception {
...
}

it should be:

public void creerProfil(String CodeProfil, Profil ProfilACreer) throws Exception {
...
}

If you have any idea about a plugin that could do this, I would be happy to hear that :)

+4
source share
6 answers

If you are on a Windows platform, use alt+shift+Ror on mac use command+option+r. He will reorganize all occurrences where used , used .

, eclipse, ctrl+shift+L windows command+shift+l mac.

+8

Alt + Shift + R Eclipse .

+2

Eclipse Neon , :

  • Search->File...
  • Containing text:
  • Replace..., .
  • . , , , With....
  • , , Preview >
  • , OK.

, !

+2

, , "refactor" → "rename". , , , .

+1

, > refactor > rename. . , checkstyle

Checkstyle , .

+1

eclipse docs : -

( ) ( ).

: , , , , , , , , , , ,

: Alt + Shift + R

/ : -

, , . , , .

:

: Alt + Shift + C

0

All Articles