What's new

How to Install Sublime Text with KSP add-on

polypx

Hoser
Mike, command-K for "compile" works for you on Mac? For me, that just launches a secondary command system, and doesn't compile. So I use the manual install of KSP, and manually change the key_commands file to "command-L" for compile (or something else that Sublime Text doesn't need). I've never found out how to do that in the Package Control version.

I also like the light colour scheme, that makes two of us!

cheers, Dan
 

geronimo

Active Member
The command-K for "compile" works for me on my Apple computer, under SIERRA 10.12.6. _

And I use Mac OS X's Calculator (here, in Programmer Mode).


programmer-calculator-mac-610x587.jpg
 

geronimo

Active Member
Under Mac OSX, the problem is that I end up with several choices of KSP synthax after different versions and updates. It's strange _
Still happy that I don't develop very complicated Instruments. :sneaky:


native-instruments-kontakt-5-2615329.jpg
 

Anders Wall

55°36'48.6"N 13°07'14.2"E
Under Mac OSX, the problem is that I end up with several choices of KSP synthax after different versions and updates. It's strange _
Still happy that I don't develop very complicated Instruments. :sneaky:
Just remove them and install the latest.
--> Prefs browse pkg.
Remove all the KSP's
Restart app and then install KSP pkg again.
Best of luck!
/Anders
 

Tod

Senior Member
Make this a sticky Mike if you haven't already. I've gone through this 3 times over the years and it's always a headbanger.

Also thanks for the "Calculator and Increment Selection", I didn't know about them. :)
 

WocherMusic

New Member
Thank you so much for your explanation, everything worked fine!
Is there a way to set up KSP syntax as a default when opening up a new file? (I've been learning how to code – and only KSP – for only three weeks yet, so that preferences menu in Sublime Text is too much for me...)
 

EvilDragon

KSP Wizard
Put .ksp extension in your file as you save it and it will automatically switch to sKSP syntax coloring.

You can also add a keyboard shortcut to switch directly to it. Go to Preferences->Key Bindings, then in the right side panel (user settings), add this bit of JSON:

Code:
    {
        "keys": ["ctrl+k, ctrl+k"],
        "command": "set_file_type",
        "args": {"syntax": "KSP.sublime-syntax"}
    },
 

WocherMusic

New Member
Thanks! And another small thing: does anyone use F5 to compile? I'd love to use it, but the KSP add-on allows only for cmd+K, while F5 is assigned to another native function in Sublime Text ("Sort lines").
 

EvilDragon

KSP Wizard
You can change the binding for Sort lines to something else (I think I moved it to F9), then F5 should work.
 

Tod

Senior Member
Something has changed in Package Control, when you click on "Install Now" it no longer takes you to the same page that you show in your video, and it no longer has the part that you copied. However, I did follow the directions there and managed to get KSP loaded.

Just thought I'd mention it in case anybody else runs into this problem.
 
Top Bottom