sublime-text-plugin

Identifying PHP unused and undefied variables sublime

余生颓废 提交于 2019-12-23 09:27:49
问题 I am using sublimetext3 unregistered . I want to know how can I configure sublime to show unused and undefined variables in php .sublimelinter-phplint does some useful work but it cannot recognise autoloaded classes that can be very irritating while development .I am looking for some package that can do it with file scope. I have following packages already installed sublimelinter phpcs 3.sublime-phpcs Is there anyother package that can be userful in developement ? 回答1: http://phpmd.org will

Sublime Text 2 LatexTools not launching SumatraPDF

大兔子大兔子 提交于 2019-12-22 14:14:53
问题 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.

Sublime Text 2 LatexTools not launching SumatraPDF

强颜欢笑 提交于 2019-12-22 14:14:33
问题 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.

How to restore focus to quick panel after focusing some other group to open a file?

不想你离开。 提交于 2019-12-22 12:32:32
问题 Situation is like this: I am writing a plugin that needs to: Open quick panel On hover of first item, focus other group Open in that group Restore focus to quick panel input so I can move to next item in list and so on... I did solve 1-3 but the 4th one gives me troubles. Is there a way to do so? 回答1: You need to get the view associated with the quick panel . The method show_quick_panel doesn't returns the view , but you can get it with using the method on_activated with a EventListener

Get all scope names on Sublime Text 3

强颜欢笑 提交于 2019-12-22 03:59:15
问题 I am creating a plugin for ST3 and need the list of all defined scopes. I know that hitting ctrl+alt+shift+p shows the current scope in the status bar but I can't do it for every file extension. Edit: In addition to simple .tmLanguage files I am extracting the .sublime-package files and reading .tmLanguage files from inside. This added some entries like source.php to the list. But source.python is still missing ! Actually, the python code is: ( this is for Python 3.3 ) import sublime, sublime

Sublime Text How to add package to global repository

こ雲淡風輕ζ 提交于 2019-12-20 04:09:27
问题 I created a plugin for sublime and I called it "sublimecastling". The main idea is to replace 2 selected fields. So I'll be glad to know whether it's possible to add it to your Sublime repository in order users could install the plugin via package-control. The github link is provided below, https://github.com/unknownuser88/sublimecastling 回答1: If you want to make a plugin available via Package Control, visit the documentation page on the Package Control website and click on Submitting a

Merging files in Sublime with Sublimerge via command line

久未见 提交于 2019-12-18 14:55:27
问题 I'm trying to find a better merge file option and wanted to try out Sublime as of my work is done using it. so I installed Sublimerge and now am stuck. I know I can compare two already open files or compare via the Sidebar but what I want to do is fire it off via the command line so I can kick it off from our source control program like I can with every other merge tool I've seen. Does anyone know the command line format to do this? N.B. - I've long since given up trying to use sublime to

Use 'Chrome Native Messaging' from Sublime Text plugin

柔情痞子 提交于 2019-12-18 04:23:17
问题 With 'Native Messaging' it should be possible to communicate between a chrome extension and a native app. https://developer.chrome.com/extensions/nativeMessaging Google even provides an example for how to do this with a python "host"-app: https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/docs/examples/api/nativeMessaging/host/native-messaging-example-host I wanted to use this technique to communicate between a Sublime Text plugin (python) and an Chrome extension

delete U+200B zero-width space characters using sublime text 3

假如想象 提交于 2019-12-18 02:55:25
问题 How can I make U+200B character or delete them in using sublime text 3. I found http://pastebin.com/ehWxNfMe but I am not sure how to use it 回答1: The following will work in Sublime Text 2 and 3. However, due to some issues discussed later, it has the potential to block the program when editing large files, and/or on slow computers. A Sublime Text 3-specific version using an asynchronous method is at the bottom. Open a new file in Sublime, and set its syntax to Python. Paste the following into

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