KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Spaces After Semicolon in Method Editor
PRODUCT: 4D | VERSION: 18 R | PLATFORM: Mac & Win
Published On: December 7, 2020

Starting from v18R5, a blank space is automatically inserted after semicolons in the method editor. The extra space is inserted when moving to the next line of code or saving the method.

Essentially, this line of code,

var $var1;$var2;$var3 : Text

becomes this.
var $var1; $var2; $var3 : Text

As the formmating of the method may be a preference to each developer, the insertion of an extra space can be set on/off in the preferences file for the 4D version (4D Preferences vx.4DPreferences).

Preference file location:
Mac = {diskName}/Users/{userName}/Application/Support/4D/
Windows = {diskName}:\Users\{userName}\AppData\Roaming\4D

In the preference file, add the attribute add_space_after_semicolon=“false” under “com.4d/method_editor/options”. The attribute can be set to "true" or "false" to toggle the setting.