Sublime Forum

Briefly disabling emdash and endash replacement in Sublime Text 4

#1

On save, Sublime helpfully replaces endashes, emdashes, and smartquotes. (It’s probably not a linter as this replacement happened when I opened a blank file, and pasted in – and hit save, but it might be.)

99% of the time, this is the correct behavour to prevent inadvertant code-breaking from word’s smartquotes. However, in this one document, I would like to disable that behaviour because we’re using unicode em- and en-dashes with intent. Is there a setting or toggle for this behaviour in a document specific format?

If it is a linter, is there a way to get a debug log of all the linters/plugins that run on save?

0 Likes

#2

I would suggest you just post your plugin list and let experienced user point out.

Preferences -> Package Settings -> Package Control -> Settings -> installed_packages

0 Likes

#3

Indeed to be clear Sublime doesn’t do any replacements of things on the fly as it’s saving things, so this is most definitely a package/plugin doing something.

Using Tools > Developer > Profile Plugins after this happens will show you a list of all of the packages/plugins that have save events, which will help narrow down which of the packages you have installed is doing this.

Wether or not it can be configured to not do this in the circumstance that you require would depend on the package.

1 Like

#4

Thanks all. I’ll go figure out which plugin it was.

The profile plugins suggestion was very useful because it lists which thing has which hook, When I discover which plugin, I’ll reply back with it.

0 Likes