KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Swift Backspace of Words/Lines of Code
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: January 29, 2020

In 4D, it is possible to quickly remove the word or entire line that is on the left of the mouse cursor selection. This makes it possible to manage more sizable backspaces with solely the use of the keyboard. This can be a useful technique to incorporate in development to enhance speed. It is helpful in situations where you may have typed the wrong command name or you realize the entire line of code that was just written is wrong. Instead of having to use the mouse to highlight and delete the selection, you can use these simple keyboard shortcuts for quick deletion of the words or lines of code.

WindowsOS:
ctrl + backspace = Backspaces word
ctrl + alt + backspace = Backspaces to line start

MacOS:
control + delete OR option + delete = Backspaces word
control + option + delete = Backspaces to line start