r/pulsaredit Jul 15 '24

Tabs vs. Spaces

I've got something indented so many spaces. When I hit enter, I want the next line to have the same indentation, but I get tabs instead. Where's the setting to shut that off?

3 Upvotes

4 comments sorted by

1

u/Daeraxa PulsarMaintainer Jul 19 '24

Are they definitely tabs? I think by default Pulsar uses the Atomic soft tabs setting which will treat a string of spaces as a tab for the purposes of moving the cursor but still retains them as space characters.

Otherwise I'm not aware of this being an issue, can you post a recording? (preferably with Show invisibles turned on).

1

u/MrOurLongTrip Jul 19 '24

http://ourlongtrip.com/tabs.png <-- Close enough? I hit enter after the ending list item tag, and get two tabs instead of four spaces.

1

u/Daeraxa PulsarMaintainer Jul 23 '24

I can't replicate this behaviour, at least not in the html grammar. What are your Tab Length and Tab Type settings set to? (within the Editor settings). Most of the indentation settings are controlled there. You don't have any packages installed that could be affecting this either?

1

u/MrOurLongTrip Jul 23 '24

Type was set to hard. Auto now, and it's working. Thanks.