I am running windows 7 32 bit and i am using sublime text 2 I want to know how can I change the default python in ST2 to the python 3.3 I down loaded. Any help would be great thanks.
You need to change the Sublime build system for Python. Copy the Python.sublime-build file from the Packages/Python folder to the Packages/User folder. In the file in the User folder, change the cmd option from python to c:/python33/python (where your Python 3.3 executable is located).
Related
I have followed the instructions at this location:
https://packagecontrol.io/installation#st2
It doesn't matter if I copy and paste the code into the console, or manually place the download file into the Installed Packages/ directory, upon restarting Sublime Text 2, the file is deleted from the directory.
The exact same question is asked here, Sublime Text 2 Package Control installed but is deleted upon Restart
but there is not a solution for that question.
Sublime Text 2 version 2.0.2, Build 2221
Mac OS 10.6.8
I've installed Sublime-HTMLPrettify as shown here https://github.com/victorporof/Sublime-HTMLPrettify
but when I try and use the command (e.g. by right clicking on a selected section of HTML) it doesn't do anything.
Is there something I'm missing?
==== PLATFORMS
SublimeText 2
OS X 10.11.3 (15D21)
Node.js is at /usr/local/bin/node and I can access it from the CLI using node.
Which version of Sublime Text you are using? and in which OS you have installed it?
For your tag I supposed Sublime Text 2.
Ensure you have node.js on System Paths and take a note from the commands and configurations that the description file of sublime-htmlprettify are only for Sublime Text 3
Hope this help you.
I'm writing a post-install script for my Ubuntu 12.04. The thing I need is to install PackageControl and all the other importent packages to Sublime Text 2 via just installed PackageControl from the shell. How can I do it? Give me some examples, please.
Thank you for your time!
You could try to write your own Code based on PackageControl to support Shell-Access, but that would overly complicate the Plugin-Installation-Process, since
Package-Installation in Sublime Text 2 is nothing more than putting files in its Packages-Directory.
I assume that you want to do this because you want to install Sublime Text on multiple PCs without the hassle of doing manual downloads from every PC.
Just create a fresh Sublime Text 2 Installation, install the Packages you need, and copy the Configuration-directory to each PC. The Configuration is in
~/.config/sublime-text-2
Copying this folder to every PC will copy the Plugins, too.
I'm new to sublime text and I'm stuck with a problem - I installed SublimeLinter via Package Control, and installed cppcheck via sudo apt-get install cppcheck (I'm using linux mint 13). SublimeLinter works fine with python source code, but don't show any vital signs when I save/load .cpp files and ask to show lint errors in C++ source code. What am I doing wrong?
UPD
Here is my sublime text console output:
...
SublimeLinter: c_cpplint loaded
SublimeLinter: C loaded
...
SublimeLinter: c enabled (using "cppcheck" for executable)
SublimeLinter: python enabled (built in)
...
Shall I set up support for .cpp code manually?
I just started using Sublime Text 2 and was wondering, to sort of make it a full featured python IDE, if there was a way to change the integrated python interpreter to target the system python install rather than the one that came with Sublime. The reason is because I would like to use my python libraries that I have on my computer with the python interpreter.
I am aware of running python code in sublime using my version of python as explicitly shown here: How do I run Python code from Sublime Text 2?
However, this does not change the version of the python interpreter that you are running.
Any ideas?
Tools > Build System > New Build System. Insert the file and with your python version:
{
"cmd": ["python3", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
According to the documentation referenced by the Sublime Text website itself, the embedded Python intrepreter is not intended for general development. This restricted usage recommendation even applies to ST2 for OS X, which is the only version that does use the system's Python version. So it's probably better to use the Build System workflow, or use a ST plug-in. Or switch to a purpose-built IDE.