Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Select "Window -> Preferences".
  2. In the filter text box, type "tab".
  3. Under "Editors -> Text Editors", set "Displayed tab width:" to 4.
  4. Under "Editors -> Text Editors", activate "Insert spaces for tabs".
  5. If you want a visual aid for the print margin, under "Editors -> Text Editors", activate "Show print margin" and set "Print margin column:" to 120.
  6. Under "XML -> XML Files -> Editor", change to "Indent using spaces".
  7. Clear the filter text box and type"format".
  8. Under "Java → Code Style Formatter", for "Active profile:" select GoogleStyle.
  9. Press the "Edit..." button.
  10. Expand the "Indentation" section.
  11. Select "Spaces only" for "Tab policy", and "4" for "Indentation size".
  12. Expand the "Line Wrapping" section.
  13. Set "Maximum line width:" to "120", and press "OK".
  14. Clear the filter text box and type "save actions".
  15. Under "Java -> Editor -> Save Actions", check the "Perform the selected actions on save", and "Additional actions" check boxes.
  16. Press the "Configure..." button.
  17. On the "Code Organizing" tab in the "Formatter" box, check the "Remove trailing whitespace" check box.
  18. Press "OK".
  19. Under "Maven -> User Settings", press the "Browse" button beside the "User Settings" text box.
  20. Browse to the Maven repository location, select the "onap_settings. xml " file for ONAP, and press "Open".
  21. Select "Java -> Editor -> Content Assist -> Favorites".
  22. For each of the types below, press "New Type..." and type in the type and press "OK".
    org.junit.Assert
    org.junit.Assume
    org.junit.jupiter.api.Assert
    org.junit.jupiter.api.Assume
    org.mockito.Mock
    org.mockito.Mockito
  23. Select "Java -Code Style -> Organize Imports".
  24. Move the "com" item in the list to the top position, using the "Up" button on the right.
  25. Press "Apply and Close".

Install useful plugins


IDE: IntelliJ

Installing Intellij Community Edition on Linux 

...