lua icon indicating copy to clipboard operation
lua copied to clipboard

Configure online editor

Open ErikSchierboom opened this issue 4 years ago • 2 comments

This issue is part of the migration to v3. You can read full details about the various changes here.

In Exercism v3, students can now choose to work on exercises directly from their browser, instead of having to download exercises to their local machine. The track-specific settings for the in-browser editor are defined in the top-level "online_editor" field in the track's config.json file. This field is defined as an object with two fields:

  • "indent_style": the indent style, either "space" or "tab".
  • "indent_size": the indent size, which is an integer (e.g. 4).

You can find a full description of these fields in the spec.

Goal

The "online_editor" field should be updated to correspond to the track's best practices regarding indentation.

Example

"online_editor": {
  "indent_style": "space",
  "indent_size": 4
}

Tracking

https://github.com/exercism/v3-launch/issues/2

ErikSchierboom avatar Jan 29 '21 13:01 ErikSchierboom

This was added in #270.

Personally I prefer the indent size of 4, but the size of 2 is widely spread in the Lua community. Should we change it to 2 @ryanplusplus?

imolein avatar Feb 17 '21 12:02 imolein

@imolein I personally prefer 2, but I'm not dead set upon it.

ryanplusplus avatar Feb 18 '21 01:02 ryanplusplus