sublimetext

Search in all files in a project in Sublime Text 3

坚强是说给别人听的谎言 提交于 2019-12-17 15:04:13
问题 Is there a way to search for a string in all files inside a project in Sublime Text 3? The string is not a method. 回答1: You can search a directory using Find → Find in files . This also includes all opened tabs. The keyboard shortcut is Ctrl ⇧ + F on non-Mac (regular) keyboards, and ⌘ ⇧ + F on a Mac. You'll be presented with three boxes: Find , Where and Replace . It's a regular Find/Find-replace search where Where specifies a file or directory to search. I for example often use a file name

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

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.

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 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

New to Sublime Can't figure out snippets with javascript in them

白昼怎懂夜的黑 提交于 2019-12-13 18:45:13
问题 I have just started using sublimeText2 since eclipse is really slow with large projects through a VPN. I am trying to bring over some of my snippets. Most are working ok but the follow one is a ajax call that I use but won't work as a snippet. I am guess that there are characters that need to be escaped or something but I am not sure which ones <snippet> <content><![CDATA[ $.ajax({ type: 'get', url: '.cfc', data: {method:'' , var: var , var2:var }, dataType: 'json', async: false, success:

Sublime Text Package Control search not work properly

眉间皱痕 提交于 2019-12-13 18:16:47
问题 Have trouble with Sublime Text 3 and Package Control . Can't find some packages through search (some plugins finds, some not), for example Color Picker plugin (https://sublime.wbond.net/packages/ColorPicker). Tried to reinstall Package Control and re-add repository but without results. What could be the reason? 回答1: The most likely explanation is that you already installed ColorPicker at some point, and this is the reason it's not showing up in the searches you do via the Command Palette,

ctrl+space key binding not working for commenting in Sublime Text 3

≡放荡痞女 提交于 2019-12-13 14:00:58
问题 After installing Sublime Text 3 (Build 3059) I tried to configure some key bindings as I usually did in the past. So I configured this in "Preferences \ Key Bindings - User": [ { "keys": ["ctrl+space"], "command": "toggle_comment", "args": { "block": false } } ] Well, this simply does not work. I can see the key binding is registered when I hover over to "Edit \ Comment \ Toggle Comment" as there is the key binding shown in grey right next to the "Toggle Comment" text. Commenting works when I