vertexclique / tokamak

Fusion Reactor for Rust - Atom Rust IDE

Home Page:https://vertexclique.github.io/tokamak/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tokamak enforces two space indents

mmstick opened this issue · comments

With this extension enabled, Rust source code will be forced to use two space indents -- completely ignoring the global value. Happened with the latest update.

Still observing this today. Will this ever be fixed?

Seconded, 4 space indent is more readable for some including myself and I can't find how to switch back to it.

Made this PR which fixes the issue: #80

A fix, of sorts, is to modify the rust.cson file that is part of the Tokamak package. YMMV, but on the Mac I find this in:
~/.atom/packages/tokamak/settings

Just remove the line about 'tabLength': 2 and you should be good.

Edit: That's exactly the fix that @mmstick made in his PR above!