jbdoderlein / BetterOCaml

A small but efficient, intuitive and responsive OCaml IDE right in your browser! Ships OCaml v5.1.1, interpreter by your browser (so it works offline!), compiled with js_of_ocaml.
https://perso.eleves.ens-rennes.fr/people/jean-baptiste.doderlein/betterocaml
Apache License 2.0
37 stars 8 forks source link

Unindentation of new lines #69

Closed fksosn closed 2 years ago

fksosn commented 2 years ago

Summary:

In a indented block of code, making a new line break precedent indentation by replacing tabs with 4 spaces : unindent with 'shift+tab' or 'del' is no more available.

Steps to reproduce:

Software used:

jbdoderlein commented 2 years ago

Hi, thanks for the feedback.

I am looking to fix this, it seems that this is the default behavior of Codemirror and I need to rewrite some of the smart indentation function.

I will work on this problem next week.

jbdoderlein commented 2 years ago

Fixed in b4f2c5

I also changed the tab size for 2 spaces to respect Ocaml Style Guide.