Sometimes you want a snippet, command, sample, or another item to only appear on certain platforms. To do so, you can use some platform specifiers.
Wrapping an item in a per-platform conditional
In the example below, we only want the sample to appear on OSX.
Unix (includes Linux)
Specifying per-platform options
Sometimes, you want an item to be bound to a different key per-platform. That can be done by using the PLATFORM_SPECIFIER. However, you could accomplish the same thing by conditionally setting the property using the same syntax as above with
Ruble.is_mac, for example.
Currently, only the following properties support platform specifiers:
Alternatively, you could also wrap the setting of various properties in conditionals that test the platform using the calls from the previous section.