我想在Atom中编辑树 View 包。我想在上下文菜单中添加一个新项目。但是我不能归档文件在哪里。我可以打开config文件夹,可以看到已安装的所有社区软件包,但是在哪里可以找到编辑器的核心文件?
最佳答案
它们打包在app.asar
文件中。该文件位于OS X版本中的以下位置。
Atom.app/Contents/Resources/app.asar
该文件由this build script生成。
当然,此软件包是开源的,因此您可以查看the code for tree-view on GitHub。
GitHub也有some documentation for developing on official Atom packages。
The first step is creating your own clone.
For example, if you want to make changes to the
tree-view
package, fork the repo on your github account, then clone it:> git clone git@github.com:your-username/tree-view.git
Next install all the dependencies:
> cd tree-view > apm install Installing modules ✓
Now you can link it to development mode so when you run an Atom window with
atom --dev
, you will use your fork instead of the built in package:> apm link -d
另外,如果您要做的只是添加另一个菜单项,那么如果有另一个插件提供的API,我也不会感到惊讶。
关于atom-editor - 如何在Atom编辑器中编辑核心文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31444401/