New code editor in editor 2 launched!

The latest editor 2 update contains a new code editor!

Apart from fixing a slew of bugs this adds:

  • multiple cursors
  • minimap
  • better syntax highlighting
  • better performance for large files

Perhaps most importantly, since this is built from scratch by us we are in a much better position for improving it further.

Some keybindings have changed, so please have a look in the Edit and View menus.

We’ve used the editor internally for a while and now look forward to your feedback!

Report any issues to https://github.com/defold/editor2-issues as usual.

23 Likes

Great news! Thanks!
Is it possible to replace Tab to 2 or 4 spaces?

8 Likes

First feature request :slight_smile:

2 Likes

Oh no, you’re one of them…

:wink:

7 Likes

This is a GROSS understatement… :slight_smile:

5 Likes

=))

Nope ) It doesn’t matter for me, but in Atom by default spaces. And whole my previous code was wrote in Atom. I have two options:

  1. Change whole project
  2. Change some settings in editor to use spaces like in project now.

Would be great if new Editor has something like Atom Beautify with the same options (change code style (beautify code) by hot keys or everytime with save)

@Erik_Angelin
I think this my feature request can be closed :

7 Likes

Awesome. Look like autocomplete work much better. :ok_hand: But i have problems with tabs. https://github.com/defold/editor2-issues/issues/1496

4 Likes

Same here after the latest update. Ping @Erik_Angelin and @Ragnar_Dahlen!

2 Likes

We’re on it!

3 Likes

Fix merged. Sorry 'bout that!

6 Likes

Nice, but weren’t you supposed to be on holidays ? :slight_smile:

5 Likes

Awesome! Excited to see how it continues to improve.

I agree about adding support for making tab create a number of spaces as an option.

Could you post a screenshot of how the text editor looks on Mac? On Windows the text is kind of fuzzy.

Here is comparison of sublime 3

crisp

text

Maybe part of it is the colors?

3 Likes

An excellent update! Ho ho!
Lots of goodies in this one.

Only thing I can see is behaving a little bit weird is the reindent lines that is not considering all indent cases (like function())

4 Likes

Awesome, so much better! I got the tab fix here a little while ago.

  • I’m very thankful for the options to toggle the minimap, indentation guides, and visible whitespace – all great features, but nice to have a choice. (sometimes the minimap just gets in the way, etc. )
  • The matching word highlight when you select something is great! I have a plugin for Atom to do this and use it constantly.
  • Proper autocomplete, yay! As-you-type and now it doesn’t act like it’s another window (on Windows anyway). (this issue seems to be solved)
    • Autocomplete for engine message names is really nice, something the Atom package doesn’t do. (msg.post(".", “acquire_input_focus”) is so much easier to type now)
  • Multiple cursors! I never expected this to get added, but I use it quite a lot in Atom. And all the multi-cursor copy-paste stuff works as it should . . . nice.
  • I just noticed the matching bracket highlighting too. Another issue closed.

There are still a few things that I would miss too much if I gave up Atom (I’ll report them on github), but it’s getting pretty close! Great work, thanks!

7 Likes

Gotcha fam

Non-retina :point_down:

4 Likes

That looks wayyyyy better than it does on Windows!

Is this an even newer build or with some things custom?

22

3 Likes

Nice Update!

But i cant use the ALTGR button inside the editor.
If i want to insert @, [, ], \ etc it does nothing. (german layout here)

2 Likes

Added https://github.com/defold/editor2-issues/issues/1511

1 Like

Added https://github.com/defold/editor2-issues/issues/1512

Im not sure if it was as of this update but being finally able to see my available syntax options and created variables is one of the best updates to happen. It removes alot of headache from my bad rep with creating typos. lol

5 Likes