sublimetext3

How do I expand a snippet, while inside of another snippet?

柔情痞子 提交于 2019-12-10 10:24:44
问题 In Sublime Text 3, I'm trying to insert a snippet inside of a snippet, aka ul[TAB] which produces <ul>|</ul> with the cursor nested between the elements. Now, what I'd want to do is be able to expand another snippet inside of this snippet, aka ul[TAB]li[TAB] rendering <ul><li>|</li></ul> once again with the cursor nested between the elements, unfortunately as part of snippets in sublime text 3, [TAB] brings you to the next anchor point, in this case, exiting the tag. I find this feature

Determine if a key sequence has already been assigned in Sublime Text

若如初见. 提交于 2019-12-10 05:40:13
问题 Does Sublime Text (2|3) have an API method or some way of determining if a shortcut or hot key sequence has already been assigned? I have lots of plugins and macros installed, and when making new ones it can be difficult to determine what key sequence to assign it to so I don't conflict with something else. Key bindings can be assigned in .sublime-keymap files in Packages/Default , Packages/User , and whichever plugin wants to assign them. To make things more complicated, I work on three

Sublime Text - plugin_host exited unexpectedly after installing sublime_tern

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 02:33:34
问题 I have installed sublime_tern package to help me with my MeteorJS development. After installing this package, any time I start Sublime I get: plugin_host exited unexpectedly. What can I do to troubleshoot this? 回答1: Problem I just had this problem but it turned out that it resulted from copying sublime between my two laptops. Somewhere along the line I lost the correct permissions. Solution The solution for me was to give execution permissions on plugin_host and it was fine (I also had to do

How to change background color of Sublime Text 3?

放肆的年华 提交于 2019-12-09 23:55:38
问题 I am using Sublime Text 3 Build 3154. I am currently using Material Theme UI Darker. The problem is I don't know to make the background color (the area where we code) a bit darker. Please help me how can I do this? I enabled contrast mode for sidebar, status bar and title bar. I want to make the background color of where we code the same as contrast mode. Please help. Settings of my Sublime Text 3: { "always_show_minimap_viewport": true, "background": "red", "bold_folder_labels": true, "color

Sublime Text 3: how to bind a shortcut to a specific file extension?

十年热恋 提交于 2019-12-09 22:17:06
问题 I would like to customize shortcut, but apply them only to a specific extension. For example, "jump to matching bracket" -> works in JS files -> customly bound to ctrl + m , "go to matching tag pair" (emmet) -> works in HTML files -> I would like to ctrl + m also here, but doesn't work (ST3 understand "jump to matching bracket" which doesn't apply here). I was wondering if specializing a shortcut to a specific extension would do the trick? 回答1: Apparently you can try something like this: [ {

How do configure sublime to always convert to unix line endings on save?

戏子无情 提交于 2019-12-09 19:38:23
问题 I want all files that I ever save in Sublime Text to be in Unix line ending format, even when I open files that were originally saved in a different format that I later edited in Sublime? Simply setting "default_line_ending": "unix" is not enough, because that doesn't convert Windows files as I mentioned. How do I do that? 回答1: Here's a quick plugin to do the job: import sublime_plugin class SetUnixLineEndingsCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.set_line_endings

In Sublime Text 3, how to have shortcuts for “Build and Run” and “Build only” separately like it was in Sublime Text 2?

旧街凉风 提交于 2019-12-09 17:54:09
问题 In Sublime Text 3,when we press Ctrl+Shift+B, we are given the option to either do "Build and Run" or "only Build", whereas Ctrl+B executes the previously chosen operation among the two. But I want it to be like, it should directly build and run when I press Ctrl+Shift+B and only build when I press Ctrl+B like it was in Sublime Text 2. Can someone help me out? 回答1: Addings this to your sublime-keymap should result in the expected behavior: { "keys": ["ctrl+b"], "command": "build", "args": {

Sublime Text 3 SublimeLinter plugin not able to find jshint

落爺英雄遲暮 提交于 2019-12-09 15:42:12
问题 For some reason, SublimeLinter3, or the SublimeLinter3 JSHint linter plugin, seems unable to parse the PATH environment variable and is thus unable to run jshint : SublimeLinter: Could not parse shell PATH output: <empty> error: SublimeLinter could not determine your shell PATH. It is unlikely that any linters will work. Please see the troubleshooting guide for info on how to debug PATH problems. SublimeLinter: WARNING: jshint deactivated, cannot locate 'jshint' Can't connect Unable to fetch

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

Installing multiple packages in sublime text 3

主宰稳场 提交于 2019-12-09 13:23:16
问题 When installing packages in Sublime Text 3, is there anyway I can tick all the ones I want from a list, and then install them in one go? Or do I have to click Preferences > Package Control > Install Package, for every single package I'd like to install? Notepad++ for instance has a nice list with checkboxes... 回答1: Just use Preferences > Package Control > Package Control: Advanced Install Package . Then you can enter a comma-separated package list, e.g. ConvertToUTF8,MarkdownEditing