eclipse set code formatting style

  1. Open Eclipse. Find window---->perferences

    Eclipse sets the code formatting style such as VS
  2. turn up. java---->code style-->formatter

    Eclipse sets the code formatting style such as VS
  3. Then find the upper right corner and click edit.

    Eclipse sets the code formatting style such as VS
  4. In braces, modify all nextlines. Tick ​​the last

    Eclipse sets the code formatting style such as VS
  5. Finally, remember to modify the name of a configuration, call it like vs2010.

    Then click OK

    Eclipse sets the code formatting style such as VS
  6. After that, remember to choose this profile like vs2010

    Eclipse sets the code formatting style such as VS
  7. Finally into the project. Press CTRL+shift+f again to see the result.

    Eclipse sets the code formatting style such as VS

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326277943&siteId=291194637