Change python interpreter – Sublime Text 2
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” }
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” }
I’m not really sure this question is approprate here, but you can add a new “Build System” under Tools -> Build System -> New Build System… As with all configuration in Sublime Text its just JSON, so it should be pretty straight forward. The main thing you are going to want to configure is the … Read more
Here’s a neat trick in Sublime Text 2 or 3 to convert your indentation spacing in a document. TL;DR: Converting from 2 spaces to 4 spaces: Ensure tab width is set to 2. Convert your 2-space indentation to tabs, switch to tab width 4, and then convert the indentation back to spaces. The detailed description: … Read more
You can find it in Edit → Line → Reindent, but it does not have a shortcut by default. You can add a shortcut by going to the menu Preferences → Keybindings → User, then add there: { “keys”: [“f12”], “command”: “reindent”, “args”: {“single_line”: false} } (example of using the F12 key for that functionality) … Read more
The comment states // Determines what character(s) are used to terminate each line in new files. // Valid values are ‘system’ (whatever the OS uses), ‘windows’ (CRLF) and // ‘unix’ (LF only). You are setting “default_line_ending”: “LF”, You should set “default_line_ending”: “unix”,
In the current version of Sublime Text 2 (Build: 2139), you can set the syntax for all files of a certain file extension using an option in the menu bar. Open a file with the extension you want to set a default for and navigate through the following menus: View -> Syntax -> Open all … Read more