Sublime Forum

Portable version with compiler?

#1

Hello,
I’m wondering if it is possible to install the portable version of sublime text with a compiler (I am currently using mingw on my home setup) on a flash drive and run c++ code on another computer without having to manually install the compiler on that computer like i had to at home.

Ps: sorry if this is a stupid question, I am new to programming and need a code editor for school

Thanks

0 Likes

#2

Sublime can certainly work that way; there are basically two sticking points:

  1. If your compiler doesn’t have an installation option to install it to a USB stick (or some documentation on how to do so), then you can’t do this because the other tool doesn’t support it.
    2, Sublime build systems need to know where the compiler is to execute them, so you would need to do a bit of extra setup to get it working, such as manually adjusting the PATH to find it, or a simple plugin for Sublime that will set it up based on knowing it’s on the same drive as Sublime is.

The larger issue is #1 though; I don’t know offhand if that is possible since I don’t use windows to write C/C++ code.

0 Likes