Eclipse Code Together

  1. Codetogether
  2. Eclipse Uninstall Code Together
  3. Eclipse Code Together At Home
Details
Written by Nam Ha Minh
Last Updated on 07 August 2019 Print Email
Eclipse Code TogetherWhen using an IDE, you cannot be more productive without using its shortcut keys frequently as your habit. In this article, we summarize a list of shortcut keys which are useful for editing Java code in Eclipse IDE.NOTE: Standard shortcuts are not covered, such as Ctrl + A (select all), Ctrl + Z (undo), etc.

Codetogether

When running with IBM’s J9 VM, Eclipse clients were unable to join sessions due to encryption issues with this VM. If an Eclipse client joined a session with no terminals, content from terminals that were subsequently shared would not be visible. Plugin is now compatible with the Eclipse 2021-03 release. Step 1: Install CodeTogether. CodeTogether is a plugin that lets you host a pair programming session from your Eclipse IDE. Invite anyone to join—they can join from Eclipse, IntelliJ, VS Code, or even a browser. Full end-to-end source encryption ensures all code stays secure. Xcode sourcetree. Simply drag this button to your Eclipse IDE (requires Marketplace Client) or add the plugin from our update site. Create a Java project. Click the drop down arrow beside the first icon at the top left of the screen.

Eclipse Uninstall Code Together

  1. Ctrl + D: Deletes current line.
  2. Ctrl + Delete: Deletes next word after the cursor.
  3. Ctrl + Shift + Delete: Deletes from the cursor until end of line.
  4. Ctrl + Backspace: Deletes previous word before the cursor.
  5. Shift + Ctrl + y: Changes a selection to lowercase.
  6. Shift + Ctrl + x: Changes a selection to uppercase.
  7. Alt + Up Arrow: Moves up current line (or a selected code block) by one line:
  8. Alt + Down Arrow: Moves down current line (or a selected code block) by one line:
  9. Ctrl + Alt + Up Arrow: Copies and moves up current line (or a selected code block) by one line:
  10. Ctrl + Alt + Down Arrow: Copies and moves down current line (or a selected code block) by one line:
  11. Shift + Enter: Inserts a blank line after current line, regardless where the cursor is at the current line (very different from press Enter key alone):
  12. Ctrl + Shift + Enter: works similar to the Shift + Enter, but inserts a blank line just before the current line.
  13. Ctrl + Shift + O: Organizes import statements by removing unused imports and sorts the used ones alphabetically. This shortcut also adds missing imports.
  14. Ctrl + Shift + M: Adds a single import statement for the current error due to missing import. You need to place the cursor inside the error and press this shortcut:
  15. Ctrl + Shift + F: Formats a selected block of code or a whole source file. This shortcut is very useful when you want to format messy code to Java-standard code. Note that, if nothing is selected in the editor, Eclipse applies formatting for the whole file:

  16. Ctrl + I: Corrects indentation for current line or a selected code block. This is useful as it helps you avoid manually using Tab key to correct the indentation:
  17. Ctrl + /or Ctrl + 7: Toggle single line comment. This shortcut adds single-line comment to current line or a block of code. Press again to remove comment. For example:
  18. Ctrl + Shift + /: Adds block comment to a selection.
  19. Ctrl + Shift + : Removes block comment.
  20. Alt + Shift + S: Shows context menu that lists possible actions for editing code:
    From this context menu, you can press another letter (according to the underscore letters in the names) to access the desired functions.
  21. Alt + Shift + S, R: Generates getters and setters for fields of a class. This is a very handy shortcut that helps us generate getter and setter methods quickly. The following dialog appears:
  22. Alt + Shift + S, O: Generates constructor using fields. This shortcut is very useful when you want to generate code for a constructor that takes class’ fields as its parameters. The following dialog appears:
  23. Alt + Shift + S, C: Generates Constructors from Superclass. A common example for using this shortcut is when creating a custom exception class. In this case, we need to write some constructors similar to the Exception superclass. This shortcut brings the Generate Constructors from Superclass dialog which allows us to choose the constructors to be implemented in the subclass:
  24. Alt + Shift + S, H: Generates hashCode() and equals() methods, typically for a JavaBean/POJO class. The class must have non-static fields. This shortcut brings the Generate hashCode() and equals() dialog as below:Select the fields to be used in hashCode() and equals() method, and then click OK. We got the following result (example):
  25. Alt + Shift + S, S: Generates toString() method. This shortcut comes in handy if we want to override toString() method that returns information of relevant fields of the class. This brings the Generate toString() dialogas below:And here’s sample of a generated toString() method:

Related Eclipse Shortcut Keys Tutorials:

Other Eclipse Tutorials:

Eclipse Code Together At Home


About the Author:

Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook and watch his Java videos you YouTube.