sublimetext3

Regular expression to match all characters between <h1> tag

安稳与你 提交于 2019-12-03 05:04:26
问题 I'm using sublime text 2 editor. I would like to use regex to match all character between all h1 tags. As of now i'm using like this <h1>.+</h1> Its working fine if the h1 tag doesn't have breaks. I mean for <h1>Hello this is a hedaer</h1> its working fine. But its not working if the tag look like this <h1> Hello this is a hedaer </h1> Can someone help me with the syntax? 回答1: By default . matches every character except new line character. In this case, you will need DOTALL option, which will

Tell Sublime Text to ignore everything in .gitignore?

送分小仙女□ 提交于 2019-12-03 04:41:17
问题 Vim has this great plugin to convert the current project's .gitignore into a syntax understandable by Vim and from there exclude all those files from opening. Using Sublime Text 3's 'Go to Anything' (CMD+P), I get lots of files I'm not interested in, such as stuff under .build and .meteor . Is there something similar for ST3? 回答1: I created a quick-and-dirty plugin, sublime-gitignorer, to solve exactly this problem. It is currently tested on Ubuntu and Windows in Sublime Text 2 and 3. I

Sublime text 3 Fira Code ligatures

£可爱£侵袭症+ 提交于 2019-12-03 04:39:05
Accordingly to this commit , ST3 has support for Fira Code ligatures, but I still don't see any changes. Obviously I have installed Fira code and have "font_face": "Fira Code", settings for this in my user settings file. But my code still with default font, without ligatures. How I can fix it? As mentioned on https://blog.sarav.co/installing-fira-code-ligatures-sublime-text-3-mac-os/ . Ligature support on Sublime Text has been enabled from version 3156+. Download Dev Version 3156 First head over to https://www.sublimetext.com/3dev and then download the latest Sublime Text dev version 3156+.

Bind shortcut to command palette command?

扶醉桌前 提交于 2019-12-03 04:25:33
问题 I just installed a plugin called CodeSniffer (http://soulbroken.co.uk/code/sublimephpcs), and I want to link one of it's commands from the command palette to a keyboard shortcut because I use it so often. Is there any easy way to do this? Or will I just need to ask the developer what the name of the command is (in the command palette it is 'PHP CodeSniffer: Clear sniffer marks')? Thanks 回答1: It's actually very easy to find the name of a command but it requires a few steps. Open Sublime Text's

SublimeText3 Fold/Unfold all methods

谁说我不能喝 提交于 2019-12-03 04:17:49
I am using SublimeText3 for C++ and Java. I am wondering if there is a way to fold all of the methods in a file / class, and then unfold them all, regardless of where the caret is. Or is there a way to list all the functions / methods. Basically I would like to be able to enter a file and see all the methods at one quick glance. Thanks Using the Sublime Text 3 menu, you can find EDIT -> Code Folding -> which exposes the folding methods and will helpfully tell you the default keyboard shortcuts they are assigned to. By default you press Ctrl+K , then Ctrl+1 to fold all subroutines. Then, to

sublimerepl getenv failing

好久不见. 提交于 2019-12-03 04:10:52
I'd like to use the SiblimeREPL package with Sublime Text. When I try to start a REPL, I get SublimeREPL: obtaining sane environment failed in getenv() Check console and 'getenv_command' setting WARN: Falling back to SublimeText environment This happens regardless of which REPL I try to start. (I tried Ruby, Python, and Clojure.) I tried Sublime Text 2 and Sublime Text 3 with the same results. This is on Mac OS X, if that matters. I looked in the package settings, where I see "getenv_command": ["/bin/bash", "--login", "-c", "env"], If I run "/bin/bash --login -c env" at a Terminal prompt, I

Could someone help me configure MinGW in SublimeText 3? (Newbie)

谁说我不能喝 提交于 2019-12-03 04:04:20
I downloaded MinGW following the first link here https://isocpp.org/get-started and now I need to configure it in SubimeText 3. I know I should go to Tools > Build System > New Build System... But what should I specify there? I use Win7x64. And MinGW is in C:\MinGW The complete reference for build systems is here . The first thing you need to do is make sure that the C:\MinGW\bin directory is in your PATH , then restart Sublime so the change gets picked up. Once you've done that, create a new build system with the following contents: { "cmd": ["gcc", "${file}", "-o", "${file_base_name}.exe"],

Sublime text 3. How to edit multiple lines? [duplicate]

非 Y 不嫁゛ 提交于 2019-12-03 03:30:55
问题 This question already has answers here : Sublime Text 2 multiple line edit (9 answers) Closed 3 years ago . I was using Notepad++ and now I want to use the same cool features in Sublime but I don't know how. I want to edit multiple lines at the same time like this: But I don't want to Ctrl+Click at each line for this. I want to click at first line and click at last line for one vertical line. How I can do this? 回答1: Select multiple lines by clicking first line then holding shift and clicking

How to remove the Windows PATH from a Sublime Text 3 Python build error?

允我心安 提交于 2019-12-03 03:21:46
问题 I am using Python 3 on Sublime Text 3 (win8.1 64bit). When I write some code and then build, if there is an error, the Windows PATH is displayed as part of the error. How do I remove the Windows PATH on Sublime Text 3 output when there is an error? I wont to remove ==> I want to erase. 回答1: This behavior can be changed by commenting out four specific lines in Packages/Default/exec.py , which is the system file that runs build systems by default. First, you'll need to install

use conda environment in sublime text 3

ぃ、小莉子 提交于 2019-12-03 03:10:22
问题 Using Sublime Text 3, how can I build a python file using a conda environment that I've created as in http://conda.pydata.org/docs/using/envs.html 回答1: 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 need to do to use a particular conda environment is modify the path to the python or python3 executable within the environment. To find it, activate your