Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Handling issue with quick fixes.

Former Member
0 Likes
1,267

Hello,

while going throught the REST tutorial, I noticed a small difference in the handling between the JDT Java editor and the ADT ABAP editor. It's not much of a difference, but it's one of the small grains of sand in the gearbox

When you use a quick fix in the JDT Java editor to create a missing local variable, you can do so anywhere in the line. I prefer to complete the method call first and then immediately press Ctrl+1 while the cursor is still at the end of the line:

-- Ctrl+1 -->

As you can see, the cursor jumps to the beginning of the item to be fixed, which makes sense - I explicitly asked for a fix, so find something to fix in the vincinity.

In the ADT editor, things are a bit different at the moment:

The cursor does not move when I press Ctrl+1. Even if there is something to be fixed in the current line, I first need to navigate to the statement in question manually in order to use the quick fix.

Would it be possible to adapt the behaviour of the ADT ABAP editor in a future version so that this additional navigation step is no longer necessary?

Thanks

  Volker

Hello,

while going throught the REST tutorial, I noticed a small difference in the handling between the JDT Java editor and the ADT ABAP editor. It's not much of a difference, but it's one of the small grains of sand in the gearbox

When you use a quick fix in the JDT Java editor to create a missing local variable, you can do so anywhere in the line. I prefer to complete the method call first and then immediately press Ctrl+1 while the cursor is still at the end of the line:

-- Ctrl+1 -->

As you can see, the cursor jumps to the beginning of the item to be fixed, which makes sense - I explicitly asked for a fix, so find something to fix in the vincinity.

In the ADT editor, things are a bit different at the moment:

The cursor does not move when I press Ctrl+1. Even if there is something to be fixed in the current line, I first need to navigate to the statement in question manually in order to use the quick fix.

Would it be possible to adapt the behaviour of the ADT ABAP editor in a future version so that this additional navigation step is no longer necessary?

Thanks

  Volker

4 REPLIES 4
Read only

Former Member
0 Likes
1,235

Hi,

I totally agree. I often find it cumbersome, to navigate exactly to the part in the line, where I can execute the quick fix.

@Volker as a workaround for most of these issues, you can quickly navigate to the marked parts in your code using CTRL - , (backward navigation) and CTRL - . (forward)

Read only

0 Likes
1,235

Hi Volker,

we will try to change this, but we cannot promise right now 😉

By the way: Do you know the quick assist "Assign statement to new variable?

You can trigger it on a a statement like

get_name( ).

which results in

DATA new_variable TYPE string.

new_variable = get_name( ).

This already works inside the entire statement and even behind the "."

Regards,

Michael

Read only

ThFiedler
Product and Topic Expert
Product and Topic Expert
0 Likes
1,235

Hi Volker,

good news for you. Today I have already seen the new behavior of the quick fix in our sprint review meeting. Will be part of the next released AIE client next year.


Merry Christmas and a happy new year.


Regards,

Thomas.

Read only

Former Member
0 Likes
1,235

Hi Thomas,

happy new year and thanks a lot for this information!

Best regards

  Volker