Sharpen your ABAP Editor for TDD – Part III.
Scharpen your ABAP Editor for Test-Driven-Development (TDD) – Part III.
How to optimize your Performance by using the new ABAP Editor
Navigation Options in the new ABAP Editor
Every Developer has his own process to develop software. With the time I´ve collect some interesting Tips. I´ve tried to implement some methods and techniques in my daily work as a agile Developer. Some works for me and some works for others 🙂
And here are the topics:
- the Split-View Option
- create own local Bookmarks
- Search and Replace of Code
The Split-View Option
The Split-View is only available if you have Coding which has more lines of code, than your Display can show…
If you don´t see the split-View-Button, then put some blank lines in your coding:
When you are finished the Operation your ABAP Editor have two area:
Often I arrange a the Top-Panel my Productive Coding and at the Bottom-Panel my local Testclasses.
This gave me the opportunity to scroll or jump with the Bookmark-Shortcuts in one area when the other are is still freezed.
Creating local Bookmarks
When I create a structure during my TDD my own applied Bookmarks help me to navigate really fast in my Coding.
Creating local Classes will left you to create an Definition and a Implementation Part.
You can image when your Code-Basis grows that scrolling could become very noisy 😉
To creating own Bookmarks go with the mouse to the left column-pane as you can see here.
Please note, that I create my Bookmark in the Definition Part of my Production-Coding:
then choose one Bookmark-Id you like:
After selecting an Bookmark-Id you got an blue Flag with the Number 0 on the left-hand side:
Now the fast Navigation is really easy. Press the Shortcuts CTRL + 0 or CTRL + 1 for the Production Code and CTRL + 8 or CTRL + 9 for your local Testclasses, and you jump immediately to the Place you want!
Search and Replace of Code
In TDD small iterations are recommended. After the Unit-Test (red) and a little Coding to pass the Test (green) you come to the Refactoring Part of TDD (blue). For the Refactoring Part I realized, that it is important to master the Search and Replace Mechanism of your Editor.
Navigate to the Place where you will replace some coding.
Click with the Mouse the Coding-Part (for example an Variable) and Press also CTRL-Shortcut. After this the Variable is selected (and also copied internal). Now, right Click and the Context-Menu will be shown. Here Choose the Replace Item:
The following Replace-Diaglog is displayed. You see that your Variable is automaticly is filled in the Find what-Form. Check that the Checkbox Match Whole Word is marked. Now fill your new Variable-Name in the Replace With-Form.
Here I would suggest that you Press the Replace-Button so often till all Variables are replaced. By the way you can also choose the Replace All-Button, but be aware, if you had anouther Method with the same Variable Name all existing Places will be changed automaticly.
Image you have a lot of Variables which are named PLAYER_ etc. (something else) you whish to look only at the coding where PLAYER as one Whole Word is meant. So Press CTRL + I and start typing PLAYER the first available Place is found now you can Press again CTRL + I and you will be navigate to the next founded Place.
It is brilliant that I realized that the combination of all the Navigation Tips make me really fast.
I realized, that the usage happend unconscious and it enables me to concentrate on the relevant Part of my daily programming tasks.
Try out the Tips. Look if it speed up your work.
What is your experience with using the above Tips?
What was good and what could be implemented better?
Have you something diffrent that works for you?
Blogs in this Series:
- Sharpen your ABAP Editor for TDD Part I. ( http://scn.sap.com/community/abap/blog/2013/01/05/sharpen-your-abap-editor-for-tdd)
- Sharpen your ABAP Editor for TDD Part II. ( http://scn.sap.com/community/abap/blog/2013/01/23/sharpen-your-abap-editor-for-tdd–part-ii )
- Sharpen your ABAP Editor for TDD Part III. ( http://scn.sap.com/community/abap/blog/2013/01/29/sharpen-your-abap-editor-for-tdd–part-iii )
- Sharpen your ABAP Editor for TDD Part IV. ( http://scn.sap.com/community/abap/blog/2014/06/25/sharpen-your-abap-editor-for-tdd–part-iv )