sublime-text-plugin

Why is Sublime Package Control not working?

爷,独闯天下 提交于 2019-12-10 17:18:28
问题 I have already installed Sublime Text 2 , and following this guide, I installed the Package Control ; once that I used the Ctrl + Shift + P shortcut in Sublime, and when I type install , the option is not there for installing. I don't want to install manually all the plugins, that would be a nightmare. 回答1: I'm sure that your Package Control is ignored, i had the same problem time ago, just go to Preferences -> Settings - User , and remove Package Control from the list of ignored packages.

Sublime code folding of comments (as in Ace)

爱⌒轻易说出口 提交于 2019-12-10 10:35:08
问题 In Cloud9 (based on the Ace editor) I can define arbitrary code folding regions within comments, for example: // Descriptor { function() { // Code } // } Folds to: // Descriptor {<->} Try it here to see what I mean. Is there an existing way to replicate this in Sublime? 回答1: Select the block of code and Hit "Ctrl + Shift + [" to fold. To unfold place pointer before the folded block and hit "Ctrl + Shift + ]" here's an youtube video link: https://www.youtube.com/watch?v=80UUPMUAP-g 回答2: From

How to enable sublime text to take first line as file name while saving?

自古美人都是妖i 提交于 2019-12-10 10:33:33
问题 Earlier the Sublime used to take first line as file name by default but now it's "untitled". Is there a way to enable it or is there a plugin for that? Thanks 回答1: The first line is only used as the file name for unsaved files when the syntax is set to Plain Text. As soon as you change the syntax highlighting and type something, it will change the tab name to "untitled". The implementation for this is in the Default package, set_unsaved_view_name.py file. To get it to work for all syntaxes:

How to enable brackethighlighter plugin in sublime text 3?

南楼画角 提交于 2019-12-09 13:41:54
问题 I am using sublime text 3 build 3059 , brackethighlighter plugin is installed but not working how to make it work ? i tried several solutions but no effect. here is screenshot: 回答1: The plugin is working - you'll notice in your screenshot that the opening and closing {} brackets are bold underlined in white (the default style), and are also shown in the gutter, next to the line numbers. If you want to customize the display more, first open Preferences -> Package Settings -> Bracket

SublimeText3 build on the server over SSH

浪尽此生 提交于 2019-12-08 11:54:36
问题 Let's say I'm on local macOS and need to edit/run something on remote Linux server using SSH. I would like to hit Build on ST3 so that it executes Makefile on the server. Am I being to imaginative or that's possible? Which tools might help to make the dream a reality? It seems something similar was asked before https://superuser.com/questions/1214210/sublime-text-terminal-control?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa 来源: https://stackoverflow.com/questions

Sublime Text 3 Git Gutter not working

北战南征 提交于 2019-12-08 07:41:29
When I first installed GitGutter, it kept saying that it needed Git and the path specified. I first moved the Git in the same folder, but then I decided to switch to its original folder and specified the path in the environment variable. It stopped showing the error message, but it is still not working. Why is it not working? Here is what I have tried: This is the repository that I created: https://github.com/GroxTheProgrammer/concerning-git-gutter . I then downloaded the zip. Here is before I add a bunch of spaces: This is after I add the spaces: As you can see, GitGutter does not display

Sublime Text 3 Git Gutter not working

那年仲夏 提交于 2019-12-08 03:30:44
问题 When I first installed GitGutter, it kept saying that it needed Git and the path specified. I first moved the Git in the same folder, but then I decided to switch to its original folder and specified the path in the environment variable. It stopped showing the error message, but it is still not working. Why is it not working? Here is what I have tried: This is the repository that I created: https://github.com/GroxTheProgrammer/concerning-git-gutter. I then downloaded the zip. Here is before I

Sublime Text MySQL Build System variable substitution issue

我与影子孤独终老i 提交于 2019-12-07 21:48:43
问题 I'm trying to configure Sublime text to do MySQL build, following is the script: { "cmd": ["mysql", "--default-character-set=utf8", "-uuser", "-ppwd", "-hlocalhost", "-v", "db_mine", "-e source main.sql"], "selector": "source.sql" } As it is, it works for file main.sql , as presented in the script. Obviously that should be changed, I see people using $file there. The problem is that here (Windows 7) it's not working. If I change it to $file , then I get: ERROR at line 1: Unknown command '\U'.

Sublime Text 2 LatexTools not launching SumatraPDF

别来无恙 提交于 2019-12-06 11:45:09
I'm trying to run the LaTexTools plugin in Sublime Text 2.0.2, build 2221. I'm running a 64-bit, Windows 8.1 computer. LaTexTools is installed and working - it produces a compiled PDF, which is viewable in SumtraPDF and Adobe Reader if I open it manually from the windows folder location. However after building the Tex file, the PDF does not automatically launch. When I try to shift the view to the PDF, Sublime Text throws the following error: Cannot launch Viewer. Make sure it is on you PATH. Doing a normal build on the .tex file produces the following output: [Compiling C:\Users\Mpaull15

How to edit built in command behavior

99封情书 提交于 2019-12-06 05:39:14
I want to edit find_under_expand ( ctrl+d ) to consider hyphenated words, as single words. So when I try to replace all instance of var a , it shouldn't match substrings of "a" in words like a-b , which it currently does. I'm assuming find_under_expand wraps your current selection in regex boundaries like this: \ba\b I need it to wrap in something like this: \b(?<!-)a(?!-)\b Is the find_under_expand command's source available to edit? Or do I have to rewrite the whole thing? I'm not sure where to begin. MattDMo Sublime's commands are implemented in one of several ways: as macros , as plugins ,