default_extension
and default_dir
exist for many years (and are really useful. I’m not sure there exist even a single person who would prefer to save a new file to the Sublime Text’s User
directory), but why they are not mentioned neither in the default settings file, nor in the documentation? Just curious.
'default_extension' and 'default_dir' settings
johnn
#1
0 Likes
kingkeith
#2
I’m not sure there exist even a single person who would prefer to save a new file to the Sublime Text’s
User
directory
That’s not the usual behavior. It defaults to the most recently active tab which exists on disk’s folder: https://github.com/sublimehq/sublime_text/issues/3070
There’s a brief mention of default_dir
at https://docs.sublimetext.io/reference/settings.html#file-and-directory-settings
default_extension
is mostly useless AFAIK, perhaps except for when saving a new tab whose syntax is set to Plain Text: https://github.com/sublimehq/sublime_text/issues/1527
2 Likes
johnn
#3
Ah, it seems it suggests User
when I first change some settings (menu bar > Sublime Text > Settings > Settings) and then create and try to save a new tab. Thanks.
0 Likes