ember-twiddle icon indicating copy to clipboard operation
ember-twiddle copied to clipboard

Change code indentation to use spaces

Open camskene opened this issue 9 years ago • 5 comments
trafficstars

In the Twiddle itself the code is indented by 2 spaces but when it is saved to the gist the indentation inside gist is different.

eg. Twiddle (indentation looks fine) https://ember-twiddle.com/58983acea1b7724c0210?numColumns=1&openFiles=application.route.js%2C

Gist (indentation is larger on L5) https://gist.github.com/camskene/58983acea1b7724c0210#file-application-route-js

camskene avatar Feb 01 '16 02:02 camskene

Not much I can do about this.

Gaurav0 avatar Feb 01 '16 14:02 Gaurav0

@camskene in your example the identation on L5 is done with two spaces and a tab. Tabs are rendered differently in different editors so that explains the issue.

While this is not really an issue IMO, it could actually be "fixed" using the solution described here.

joostdevries avatar Feb 02 '16 01:02 joostdevries

@joostdevries so pressing tab inside 'Twiddle creates a Tab or a Space?

camskene avatar Feb 02 '16 01:02 camskene

@camskene right now it creates a tab. but the examples contain spaces.

joostdevries avatar Feb 02 '16 09:02 joostdevries

Fixable by implementing: https://codemirror.net/doc/manual.html#keymaps

joostdevries avatar Apr 12 '16 15:04 joostdevries