sublimetext3

Sublime text plugin is not working

可紊 提交于 2019-12-13 20:03:51
问题 I'm using Sublime text 3 and I'm writing a simple plugin, the problem that i have is that whenever i put myplugin.py in the Packages/User folder I get the result perfectly. BUT when I move myplugin.py file to a folder for example myplugin/myplugin.py the plugin is not working anymore. I tried to see if there is any information logged to the console but I found nothing related to my problem. Can any one tell me what is exactly the problem and what I'm doing wrong? 回答1: Actually I was missing

Switch off git integration in Sublime Text 3.2

让人想犯罪 __ 提交于 2019-12-13 18:52:43
问题 If I want to switch off the GIT integration (aka the slime green line) on the left hand gutter in Sublime text, I just need to switch it to false: 26 "show_git_status": false However, when setting that in the Preferences, I get the error: Error trying to parse settings: Unexpected character, expected a comma or closing brackets in Packages\User\Preferences.sublime-settings:26:2 Clearly I'm a comma or bracket(s) short, but I don't know where or what format it should be. Can anyone enlighten me

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,

Creating & intsalling a simple .sublime-syntax file for Sublime Text 3

我是研究僧i 提交于 2019-12-13 17:24:06
问题 I'm trying to define a very basic .sublime-syntax syntax-highlight file for Sublime Text 3. I'm basing it on the first example in the Sublime Text 3 official documentation on Syntax Definitions: %YAML 1.2 --- name: Z file_extensions: z scope: source.c contexts: main: - match: \b(if|else|for|while)\b scope: keyword.control.c This file is /Users/justin/Library/Application Support/Sublime Text 3/Packages/User/z.sublime-syntax (I left the scopes as .c because I thought maybe the ST3 "theme" (e.g.

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

Remove all content between two strings using regular expressions

拥有回忆 提交于 2019-12-13 07:54:03
问题 I am trying to use regular expressions in sublime 3, to remove all the content between two strings, an XML file. Suppose this is my content: <Body name="ground"> <mass>0</mass> <mass_center> 0 0 0</mass_center> <inertia_xx>0</inertia_xx> <inertia_yy>0</inertia_yy> <inertia_zz>0</inertia_zz> <inertia_xy>0</inertia_xy> <inertia_xz>0</inertia_xz> <inertia_yz>0</inertia_yz> <!--Joint that connects this body with the parent body.--> <Joint /> <VisibleObject> <!--Set of geometry files and

Save file before running custom command in Sublime3

拥有回忆 提交于 2019-12-13 07:29:22
问题 This question is similar to this one Is it possible to chain key binding commands in sublime text 2? Some years have passed since that question (and the answers given), and I'm using Sublime Text 3 (not 2), so I believe this new question is justified. I've setup a custom keybind: { "keys": ["f5"], "command": "project_venv_repl" } to run the project_venv_repl.py script: import sublime_plugin class ProjectVenvReplCommand(sublime_plugin.TextCommand): """ Starts a SublimeREPL, attempting to use

Sublime couldn't find Node.js

☆樱花仙子☆ 提交于 2019-12-13 07:28:32
问题 I have had this very same problem happen with another Sublime Package - something isn't configured correctly on my Mac. I installed CSSComb with npm install -g csscomb . I installed the CssComb Sublime package using Sublime's "Package Installer". I've restarted Sublime. When I try to use CSSComb in Sublime, the console has the error: Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 818, in run_ return self.run(edit) File "/Users

Sublime text & Linux-KDE. System locales is set to a value that can not handle non-ASCII characters

自古美人都是妖i 提交于 2019-12-13 04:47:24
问题 I'm getting this error when I open ST3. Package control is not working. Package Control Your system's local is set to a value that can not handle non ASCII characters. Package Control can not properly work unless this is fixed. On Linux, please reference your distribution's docs for on properly setting the LANG environmental variable. As a temporary work-around, you can launch Sublime Text from the terminal with: LANG=en_US.UTF-8 sublime_text The termporary workaround doesn't work. Also, when

Possible to open Sublime in two row layout by default?

試著忘記壹切 提交于 2019-12-13 04:38:51
问题 As a matter of personal preference I like Sublime 3 to be set to a two row layout. I can set this through the menu or via keyboard shortcut, but I am wondering if it's possible to open every window in this layout by default? I can't find anything in the Default settings file that corresponds to the layout. 回答1: If you want to control the layout of ST then Origami is your friend. Install it through Package Manager and you'll be able to do pretty amazing things with layouts. 回答2: You can create