sublimetext3

Sublime Text 3 how to change the font size of the file sidebar?

一个人想着一个人 提交于 2019-12-17 14:59:45
问题 Though I have tried to modify "font.size" in classes like "Label_control" and "sidebar_control" in the Package "Theme-Default", the font size of the editor does not change at all. Is there anything different in sublime text3? 回答1: The answers are omitting the square brackets , in the case one is creating the file from scratch. To recap, for the ST3 users who don't have the Default.sublime-theme file (which is actually the default configuration), the simplest procedure is: Navigate to Sublime

Python 3.4 on Sublime Text 3

不羁岁月 提交于 2019-12-17 10:27:29
问题 I followed these steps to run Python 3 on Sublime Text 3. Select the menu Tools > Build > New Build System and I entered the following: { "cmd": ["python3", "$file"] , "selector": "source.python" , "file_regex": "file \"(...*?)\", line ([0-9]+)" } After that, I saved it to the following (Mac-specific) directory: ~/Library/Application Support/Sublime Text 3/Packages/User but I'm getting this error when I'm trying to run my code on Python 3 in Sublime: [Errno 2] No such file or directory:

How to edit Sublime Text build settings?

白昼怎懂夜的黑 提交于 2019-12-17 10:13:18
问题 I want to enable -std=gnu++11 in Sublime Text 3's C++ Single File build on Ubuntu 12.04. I have already upgraded the tool chain to the latest g++ and do not want to see the following error on every build: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. I browsed to /home/myuname/.config/sublime-text-3 but cannot find any file to edit.

Change Default settings in Sublime Text 3

做~自己de王妃 提交于 2019-12-17 08:55:15
问题 After installing sublime text 3 on Linux, I cannot seem to change the default settings, for example: // Controls auto pairing of quotes, brackets etc "auto_match_enabled": true, I can't replace true to false. The file appears to be read-only. 回答1: Sublime Text 3 does not allow you to change default settings in the Settings - Default file. This is because this file gets overwritten each time the program is upgraded, losing all of your settings. To change settings, choose Preferences ->

Change Default settings in Sublime Text 3

给你一囗甜甜゛ 提交于 2019-12-17 08:55:12
问题 After installing sublime text 3 on Linux, I cannot seem to change the default settings, for example: // Controls auto pairing of quotes, brackets etc "auto_match_enabled": true, I can't replace true to false. The file appears to be read-only. 回答1: Sublime Text 3 does not allow you to change default settings in the Settings - Default file. This is because this file gets overwritten each time the program is upgraded, losing all of your settings. To change settings, choose Preferences ->

Open Sublime Text from Terminal in macOS

妖精的绣舞 提交于 2019-12-17 04:11:16
问题 In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 from the command line in macOS? 回答1: I finally got this to work on my OSX box. I used these steps to get it to work: Test subl from your ST installation: First, navigate to a small folder in Terminal that you want ST to open and enter the following command: /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl . NOTE: You may need to replace Sublime\ Text.app in the command

Open Sublime Text from Terminal in macOS

若如初见. 提交于 2019-12-17 04:09:02
问题 In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 from the command line in macOS? 回答1: I finally got this to work on my OSX box. I used these steps to get it to work: Test subl from your ST installation: First, navigate to a small folder in Terminal that you want ST to open and enter the following command: /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl . NOTE: You may need to replace Sublime\ Text.app in the command

Sublime text multiple cursors?

旧巷老猫 提交于 2019-12-14 03:26:10
问题 Sublime Text is so damn advanced and this seems like such a stupid question, but... I started writing a for loop in PHP (using SFTP), loved that it gave me a choice to auto-generate the loop. However, it enters this weird multi-cursor mode, which 1)I am not really sure how to use/exit without using the mouse; 2) it seems useless, seeing as all 3 type the same thing, even though I need to change, for example, the $i > x or $i = x. 回答1: Although Sublime does indeed support the idea of multiple

Sublime text multiple language syntax highlight?

杀马特。学长 韩版系。学妹 提交于 2019-12-14 03:21:28
问题 Is there something like multiple language highlight syntax in Sublime Text? For example my code might look like this: {% extends "template.html" %} {% block content %} {% if task == 'archimed_spiral' %} <p> $\frac{2}{3}$ </p> {% elif task == 'gcd' %} {% endif %} {% endblock %} Which is LaTeX inside html inside Jinja2. It gets pretty hard to read it properly. Note I know about Jinja2 package for Sublime, so it does highlight Jinja2 + html. Maybe I am just asking for too much.. 回答1: Yes you can

Set syntax for a specific file name in Sublime Text 2/3

二次信任 提交于 2019-12-14 02:17:54
问题 I have a program that uses a file called user.cfg to get its user defined configuration settings. The odd thing is that they chose the syntax for this file to be Tcl (it's not odd that it is Tcl, it's odd they chose the .cfg extension instead of .tcl ). So, when I open this file in Sublime Text, it doesn't know what syntax highlighting scheme to choose. What I would like to do is set the syntax highlighting for user.cfg to Tcl, but not all .cfg files to Tcl. I have seen this question which is