Sublime Forum

Sublime 3: Are conditionals possible in the preferences?

#1

Hello,

I use Sublime Text 3 as a portable version in my Dropbox and I access it on various locations. Is it possible to tweak some preferences based on the host name with a conditional, e.g. setting a proxy, different fonts size, etc.

I have looked up in the manual but did not found anything? Does anybody have an idea? I would still like to have the same preferences everywhere but minor location based tweaks would be better.

Greetings from Germany
Daniel

0 Likes

#2

You can write an plugin for this.
Use in that the function: β€œdef plugin_loaded():” to load the settings and set them related to the specifications of the current environment.

0 Likes

#3

Well, writing a plugin could be a solution. Seems that there is not a standard way to do it. Than I have to look into plugins. At the moment I am pretty new to Sublime Text and I need to read something about writing plugins. :smile:

0 Likes