How to compile and run C in sublime text 3?

Have you tried just writing out the whole command in a single string? { “cmd” : [“gcc $file_name -o ${file_base_name} && ./${file_base_name}”], “selector” : “source.c”, “shell”: true, “working_dir” : “$file_path” } I believe (semi-speculation here), that ST3 takes the first argument as the “program” and passes the other strings in as “arguments”. https://docs.python.org/2/library/subprocess.html#subprocess.Popen

Setting up sublimetext 3 as git commit text editor

For what it’s worth, here’s how I solved it: 1) Run in Terminal: sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl This adds a subl alias to /usr/local/bin/ pointing to Sublime Text 3 app’s binary file. Now running subl in Terminal will launch Sublime Text 3 app. 2) Run in Terminal: git config –global core.editor “subl -n … Read more

Keyboard shortcut to comment lines in Sublime Text 3

It seems a bug: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=11157&start=0 As a workaround, go to Preferences->Key Bindings – User and add these keybindings (if you’re using Linux): { “keys”: [“ctrl+7”], “command”: “toggle_comment”, “args”: { “block”: false } }, { “keys”: [“ctrl+shift+7”], “command”: “toggle_comment”, “args”: { “block”: true } } Update: This also works on Windows 8 (see @Sosi’s comment)

Wrong default syntax highlighting in sublime text 3

Changing the syntax highlighting for any file type is easy in Sublime. Simply open a file with the extension you want to change, then click on View -> Syntax -> Open all with current extension as… and choose whichever language you wish. This will add the current extension to the “extensions” list in Packages/User/LanguageName.sublime-settings, where … Read more

Python 3.4 on Sublime Text 3

You need to provide the full path to python3, since Sublime Text does not read your ~/.bash_profile file. Open up Terminal, type which python3, and use that full path: { “cmd”: [“path/to/python3”, “$file”], “selector”: “source.python”, “file_regex”: “file \”(…*?)\”, line ([0-9]+)” }

use conda environment in sublime text 3

NOTE: This will work for virtual environments created with conda as well as venv or virtualenv, you just need to activate it first to find the path to the python[3] executable. A standard Python .sublime-build file looks like this: { “cmd”: [“/path/to/python”, “-u”, “$file”], “file_regex”: “^[ ]*File \”(…*?)\”, line ([0-9]*)”, “selector”: “source.python” } All you … Read more

ModuleNotFoundError: No module named ‘webdriver_manager’ error even after installing webdrivermanager

Update (thanks to Vishal Kharde) The documentation now suggests: pip install webdriver-manager Solution: Install it like that: pip install webdriver_manager instead of pip install webdrivermanager. Requirements: The newest version, according to the documentation supports python 3.6 or newer versions: Reference: https://pypi.org/project/webdriver-manager/