Sublime Forum

How do I change the indentation rules

#1

how do I change the indentation rules without deleting/changing the tmPreferences file?

to be more specific, I want to change the indentation rule for haskell,
I want the “let” key word to be part of the “increase indent pattern”

modifying the file in the haskell folder is one way to do it, but it’s not consistent.
( although it doesn’t seem that ST2 is ever going to update again, ST3 will )

copying the file into the user folder and modifying it, doesn’t work.
I guess it’s the uuid thing…
I have to delete the original file inside the haskell folder to make the user defined version to work.

Is there any standard way to do it?
Without changing anything in the original file, just adding something in the user folder, and make it work?

0 Likes

Switch/Case block indentation
#2

Why not just copy the haskell package to your user folder and rename it to something like myhaskell then add the default haskell to your ignore-packages list in settings?

0 Likes

#3

hmm, yeah, this can do the job.

thanks

0 Likes

#4

According to this sublimetext.com/docs/3/packages.html

So this might work for you in Sublime Text 3 without using ignore-packages

0 Likes

#5

[quote=“atomi”]According to this sublimetext.com/docs/3/packages.html

So this might work for you in Sublime Text 3 without using ignore-packages[/quote]

not sure if tm files can be overridden but thanks :wink:

0 Likes