---
title: "Sharpen your ABAP Editor for TDD – Part III"
date: "2013-01-29"
language: en
text: full
source: "SAP Community"
format: "Article"
credit: "By Damir Majer"
contributors:
  - name: "Damir Majer"
    role: author
original: https://community.sap.com/t5/application-development-and-automation-blog-posts/sharpen-your-abap-editor-for-tdd-part-iii/ba-p/12975017
canonical: https://damirmajer.com/notebook/sharpen-your-abap-editor-for-tdd-part-iii/
---

# Sharpen your ABAP Editor for TDD – Part III

SAP Community · Article · By Damir Majer · 29 January 2013

_Some screenshots of the original post did not survive. Part I of the series was not recovered from the web archive._

## 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…

_Image: The editor with a short program: no split-view handle yet._

If you don´t see the split-View-Button, then put some blank lines in your coding:

_Image: The split-view handle at the top of the editor’s scroll bar._

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.

_Image: The editor split into two views of the same program._

### 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:

_Image: The editor’s context menu with the “Bookmarks” entry._

then choose one Bookmark-Id you like:

_Image: The bookmarks submenu: numbered bookmarks with Ctrl+Alt and a digit._

After selecting an Bookmark-Id you got an blue Flag with the Number 0 on the left-hand side:

_Image: A bookmark marker beside the method declarations._

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:

_Image: The editor’s context menu with “Replace…” (Ctrl+H) selected._

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: The “Find and Replace” dialog over the code._

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.

_Image: The method “move” with a search hit for “player” highlighted._

**My experience is**..

**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**.

**Your experience is**?

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?

**Further Information**

Blogs in this Series:

* [Sharpen your ABAP Editor for TDD Part I.](https://community.sap.com/t5/application-development-and-automation-blog-posts/sharpen-your-abap-editor-for-tdd-part-i/ba-p/12980175)
* [Sharpen your ABAP Editor for TDD Part II.](/notebook/sharpen-your-abap-editor-for-tdd-part-ii/)
* [Sharpen your ABAP Editor for TDD Part III.](/notebook/sharpen-your-abap-editor-for-tdd-part-iii/)
* [Sharpen your ABAP Editor for TDD Part IV.](/notebook/sharpen-your-abap-editor-for-tdd-part-iv/)

## Sources

- [Read the original on SAP Community](https://community.sap.com/t5/application-development-and-automation-blog-posts/sharpen-your-abap-editor-for-tdd-part-iii/ba-p/12975017)
- [Read the archived page](https://web.archive.org/web/20211208135445/https://blogs.sap.com/2013/01/29/sharpen-your-abap-editor-for-tdd-part-iii/)
