It sounds like a stupid question to me, as I'm sure there must be an easy solution in Eclipse, I just couldn't find it out.
I have a line of code like this:
add 1 to gd_flying_monsters.
gd_flying_monsters is not defined yet, so it's a syntax error, ok.
Now I would have expected, that there's a Quick Fix (ctrl + 1) to create the definition (in SE80 I would just double-click), however, the only Quick-Fix option I’m offered, is renaming the variable.
This is how it looks like:
Version info:
Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200
ABAP Development Tools for SAP NetWeaver
Version: 2.50.1