New code editor in editor 2 launched!


#1

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.


#2

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


#3

First feature request :slight_smile:


#4

Oh no, you’re one of them…

:wink:


#5

This is a GROSS understatement… :slight_smile:


#6

=))

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

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


#8

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


#9

We’re on it!


#10

Fix merged. Sorry 'bout that!


#11

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


#12

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?


#13

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())


#14

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!


#15

Gotcha fam

Non-retina :point_down:


#16

That looks wayyyyy better than it does on Windows!

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

22


#17

Nice Update!

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


#18

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


#19

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


#20

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