A bug with text block tabify

Hello. I’ve found a minor issue in the editor. While editing a script I select a code block and hit Tab button. And I get tab characters instead of spaces in the beginning of every line though my settings are set to replace tabs with spaces.

Defold editor version: 1.2.91
Settings:

  • Displayed tab width: 4
  • Insert spaces for tabs: true

This issue will not be solved in the current editor since our new editor is just around the corner. Let’s make sure Editor 2 respects tabs vs spaces @Erik_Angelin!

In Editor2, I think we have hard-coded tabs as 4 spaces and filtering of Windows new-lines, right @Erik_Angelin? It should be a preference, but spaces are the better choice. :wink:

1 Like

Right now we normalise line endings to unix style \n when loading. Actual \t’s are inserted when pressing tab and for indentation. Tabs are 4 spaces wide.

7 Likes

Okay then. I’m eager to see the new Editor :slight_smile:

2 Likes