Application Development 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: 

Shift+Tab for UnIndent not working in workbench editor

ThomasSchmutz
Explorer
0 Kudos

Hello everybody,

I'm trying to indent my code for getting a better overview. But the problem is that unindent with the shortcut SHIFT+TAB doesn't work in insert mode.

In a strange way after the workaround by pressing the Insert button to change to overtype mode, press once SHIFTTAB (the unindent works) and then pressing once again the Insert button, the unindent works for this particular line. In all other cases ****TAB has no effect at all, cursor stays where it has been.

The shortcut for Edit.UnTab in the options, Keyboard of the ABAP workbench is set to SHFIT+TAB. Furthermore in the keymap.xml (C:\Dokumente und Einstellungen\...\Anwendungsdaten\SAP\SAP GUI\ABAP Editor) file everything seems to be ok:


		<HOTKEY id="37003">
			<VerbID>Edit.Tab</VerbID>
			<Descr>Insert tab or indent selection</Descr>
			<Shortcut Shift="0" Ctrl="0" Alt="0" Key="9"/>
		</HOTKEY>
		<HOTKEY id="37004">
			<VerbID>Edit.UnTab</VerbID>
			<Descr>Untabify selection</Descr>
			<Shortcut Shift="1" Ctrl="0" Alt="0" Key="9"/></HOTKEY>

We are running SAG Gui 720, file version 7200.2.5.3211, build 1235132, patch level 5.

Could it be that it isn't possible at all, or is this working at anybody? Any ideas what to do?

Cheers,

Thomas

1 ACCEPTED SOLUTION

Clemenss
Active Contributor
0 Kudos

Hi Thomas,

are you sure?

It works in our system SapGui final 710, patch level 19.

In INS mode, shift-tab unindents, in OVR it just moves the cursor to the tab positions.

You can see the mode at the lower right corner of the editor window.

Regards,

Clemens

6 REPLIES 6

Clemenss
Active Contributor
0 Kudos

Hi Thomas,

are you sure?

It works in our system SapGui final 710, patch level 19.

In INS mode, shift-tab unindents, in OVR it just moves the cursor to the tab positions.

You can see the mode at the lower right corner of the editor window.

Regards,

Clemens

0 Kudos

Hi Clemens,

thnaks for the quick response. Just rebuilt the problem once more.

I've to concretize the described behaviour in our sysstem:

Case 1: new line is not blank anymore

In the case that I write anything in the new line before unidenting, the behaviour is just as you described. That's already good news.

Case 2: new line is yet blank

If I create a new line (by Enter in insert mode), the new line is yet blank. But because I already know the indent should be smaller, I try to indent the cursor by SHFIT+TAB before coding, but in that case nothing happens. So I should press Insert, unindent, Insert or first write the code and in the line and then unindent as workaround - both seems not quite ergonomic to me.

Do you have the same behaviour as in case 2 in your system?

Regards,

Thomas

Clemenss
Active Contributor
0 Kudos

Hi Thomas,

yes, behavior confirmed as described. Cass 2, Enter after indented line indents same level SHIFT-F1 works as soon as you have typed anything.

Seriously spoken: I do not love this new editor too much as it is not according to any existing or widely-used standard. For instance the nice autobracket functionality does not work for &LT; or &GT; before you edit the undocumented config files. Also it does not work together with the autocompletion, it does not know that a ( after a method call must enclose at least one space character, just naming a few. Kind of typical SAP: On first glimpse only looks at it could be useful.

Regards

Clemens

Former Member
0 Kudos

Clemens,

I have been though 3-4 versions and several patches. Without doing any modification to the config files i can see different behaviours in different machines many times,.

for example, the auto bracket for < and > works for me..

0 Kudos

Hi Clemens,

Thanks to for the verification of the behaviour. Although the functionality is not working properly for me, it's at least not a special case in our system.

Have to admit that not everything is working properly as you described in your 2009 post "New editor: no auto- angle bracket". At least the auto bracket functionality seems to work ok now.

If someone has another hint for beeing able to unindent a new blank line properly - that would be great; otherwise I will have to get used to it and hope for the next release.

Regards,

Thomas

Clemenss
Active Contributor
0 Kudos

Hi Thomas,

the auto-bracket for &LT;&GT; may have been re-implemented in the newer patches - still not really satisfactory.

Your special question about unindenting an empty line is maybe not a bug but a feature. It still works after you typed at least one character.

How is the difference regarding a real integrated editor as in Delphi?

Regards,

Clemens