-
-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tabs/indenting #586
Comments
Maybe https://github.com/domluna/JuliaFormatter.jl could be useful? I for one would happily allow such a tool to auto-format everything. |
I don't want to implement a formatter yet (maybe in 6 months), but codemirror has built in auto-indent and you could add a shortcut for that. |
Just added #599 🙂 |
We will revisit this later - we don't do any customization right now. |
following up on this, would be awesome to convert tabs to spaces! |
It'd be nice to let Pluto know to use 4 spaces instead of TAB character. |
Same problem here. Copy/paste code from VS Code or directly from Github to Pluto.jl ends up bith spaces/tabs mixed up. Issue opened #2831 |
That would not solve the copy/paste from various sources issue, but |
It'd be great if we could revisit this default — pretty much every single Julia style guide recommends spaces over tabs. |
bump :) This also would be helpful when editing "in parallel", i.e. having the notebook open in the browser and at the same time in the editor (which works great with emacs...). |
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.
The text was updated successfully, but these errors were encountered: