Skip to content

tabs/indenting #586

Description

@j-fu

Hi, two issues with tabs:

currently, the tab key inserts a tab character (which in the editing widget seems to be equivalent
to 4 spaces).

  • I am a "spaces" guy in the tabs vs spaces flamewar. So I would prefer to have spaces instead of tabs for indenting. Kind of supported also by https://github.com/invenia/BlueStyle .

  • Once this is settled ;) there is the question of the role of the tab key. In emacs (yes, on that side of the emacs-vs-vi debate :) ), the tab key just indents in the right way according to the surrounding code. Super cool for python, but very nice for all languages. Would this be possible here ?

I understand that these are very personal taste preferences, so there may be reasons that in Pluto preferences should be different from mine. But at least it would be good to support some automatic indenting of code. May be it is possible to have a hotkey (like C-m for toggling markdown) which fixes code indenting in a cell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions