ECLIPSE TIPS & TRICKS LAKSHMI P SHANMUGAM SARIKA SINHA - - PowerPoint PPT Presentation

eclipse tips tricks
SMART_READER_LITE
LIVE PREVIEW

ECLIPSE TIPS & TRICKS LAKSHMI P SHANMUGAM SARIKA SINHA - - PowerPoint PPT Presentation

ECLIPSE TIPS & TRICKS LAKSHMI P SHANMUGAM SARIKA SINHA Eclipse Platform Co-lead Eclipse JDT & Platform Co-lead IBM IBM OVERVIEW DARK THEME CONFIGURATION NAVIGATION SEARCH CODING DEBUGGING DARK THEME DARK THEME CSS based Dark


slide-1
SLIDE 1

SARIKA SINHA

Eclipse JDT & Platform Co-lead IBM

ECLIPSE TIPS & TRICKS

LAKSHMI P SHANMUGAM

Eclipse Platform Co-lead IBM

slide-2
SLIDE 2

CODING

OVERVIEW

DARK THEME NAVIGATION CONFIGURATION SEARCH DEBUGGING

slide-3
SLIDE 3

DARK THEME

slide-4
SLIDE 4

DARK THEME

❏ CSS based Dark theme ❏ Major improvements in recent releases ❏ Native look

slide-5
SLIDE 5

WINDOWS DARK THEME

Menu Dark Scrollbars

slide-6
SLIDE 6

MAC & LINUX

❏ Eclipse by default automatically launches in dark theme if the system is in dark mode

slide-7
SLIDE 7

Welcome Page Help

slide-8
SLIDE 8

Command - Cmd (⌘) vs Control - Ctrl (^)

slide-9
SLIDE 9

Quickly find anything in Eclipse Find Actions (Cmd + 3)

slide-10
SLIDE 10

CONFIGURATION

slide-11
SLIDE 11

CONFIGURATION

❏ Show key bindings for command (from Keys preferences

  • r toggle using Find actions)

❏ Configure Window title (from Workspace preferences) ❏ Adjust view font size (from Colors & Font preferences) ❏ Zoom in/out text editors (Cmd ++/--) ❏ Maximize active editor/view (Ctrl + M) ❏ Show problem marker in editor (using Text editor preferences)

slide-12
SLIDE 12

NAVIGATION

slide-13
SLIDE 13

NAVIGATION

❏ Quickly switch editors (Cmd + E) ❏ Show in System Explorer (from Find actions) ❏ Show exit points of a method (place cursor on return type

  • r exit statement)

❏ Mark occurrences (Cmd + . ) ❏ Multiple last edit location (Ctrl + Alt + → , Ctrl + Alt + ←) ❏ Code minings (enable in preferences or toggle from Find actions) ❏ Minimap ❏ Hover (Cmd + Shift + Hover, Shift + Hover, Cmd + Hover)

slide-14
SLIDE 14

SEARCH

slide-15
SLIDE 15

SEARCH

❏ Quick search (Alt + Shift + Cmd + L) ❏ Incremental search (Cmd + J) ❏ Java Search dialog ❏ Find references (Cmd + Shift + G) ❏ Include plugins from target platform in Java search

slide-16
SLIDE 16

TROUBLESHOOTING

slide-17
SLIDE 17

TROUBLESHOOTING

  • Plug-in Spy (Alt + Shift + F1)
  • Plug-in menu spy (Alt + Shift + F2)
  • Layout spy (using Find actions)
  • API Tooling: Hover over version error to see breaking

change

slide-18
SLIDE 18

CODING

slide-19
SLIDE 19

CODING

  • Typing

○ Block selection (Alt + Cmd + A) ○ Quickly move line (Alt + ↑ / ↓ ) ○ Quickly duplicate line (Alt + Cmd + ↑ / ↓ ) ○ Word completion (Ctrl + . on Mac ) ( Alt + / on Win & Linux)

  • Templates

View/create templates (Templates View/ Preferences page)

Switch expression templates (type switch followed by Ctrl + Space)

  • Content assist

Autoactivation (.)

Insert/replace using content assist (With/without Ctrl)

Camel case & substring match (By default)

Subword & subtype completion (Setting in Preferences page)

Postfix completion (. after statement)

Non-blocking java completion (By default)

slide-20
SLIDE 20

CODING

❏ Type Filters ❏ Pattern matching for instanceof ❏ Text block creation ❏ Cleanup

Simplify functional interface instances ( Setting in Cleanup profile )

❏ Quick fixes

❏ Surround with "try-with-resources" block ❏ Quick fixes for module-info Javadoc ( Setting in Javadoc error level )

slide-21
SLIDE 21

DEBUGGING

slide-22
SLIDE 22

DEBUGGING

❏ Helpful NPE (Java 14) ❏ Suspension on recurrence of exception ❏ History for expressions in the Variables view ❏ Detail formatter/ Logical Structures ❏ Console output enhancements ❏ Lambda evaluation improvements ❏ Trigger point ( Set in Breakpoint properties) ❏ Tracepoint ( Run-> Toggle Tracepoint)

slide-23
SLIDE 23

DEBUGGING

❏ Toggle method breakpoints from outline view ❏ Organising breakpoints by working set ❏ Show command line in launch configuration ❏ Launch Configuration Template ❏ Remote debugging launch configuration

java -Xdebug

  • agentlib:jdwp=transport=dt_socket,address=9999,

server=y,suspend=n

slide-24
SLIDE 24

SMART DEBUGGING COMMANDS

slide-25
SLIDE 25

Show active key bindings in Eclipse Cmd + Shift + L Modify the active key bindings in Keys preferences Cmd + Shift + L (Press Twice)

slide-26
SLIDE 26

DOCUMENTATION

  • Eclipse > Help > Tips & Tricks
  • Eclipse > Help > Welcome > What’s new
  • https://www.eclipse.org/eclipse/news/
  • Sleak - https://www.eclipse.org/swt/tools.php
slide-27
SLIDE 27

THANK YOU!

slide-28
SLIDE 28

EVALUATE THE SESSIONS

Sign in and vote at Eclipsecon.org:

  • 1 0 +1