Sublime 文本插件不起作用 [英] Sublime text plugin is not working

查看:49
本文介绍了Sublime 文本插件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Sublime text 3 并且正在编写一个简单的插件,我遇到的问题是,每当我将 myplugin.py 放在 Packages/User 文件夹中时,我都会得到完美的结果.

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.

但是 当我将 myplugin.py 文件移动到一个文件夹(例如 myplugin/myplugin.py)时,插件不再工作.我试图查看控制台是否记录了任何信息,但没有发现与我的问题相关的任何信息.

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?

推荐答案

实际上我忽略了一个事实,即 sublime text 插件应该位于 Packages 文件夹中,而不是 Packages/User文件夹

Actually I was missing the fact that a sublime text plugin should be living in the Packages folder and not Packages/User folder

这篇关于Sublime 文本插件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆