gpt4 book ai didi

git - 在 Atom 中为 Linter 包安装包模块

转载 作者:太空狗 更新时间:2023-10-29 13:11:03 26 4
gpt4 key购买 nike

我正在使用 the Atom text editor ,并安装了 ' Linter ' 包,这样我就可以在编辑时获得实时调试/错误报告。

Atom 有一个用于自动安装包的 UI - 一键安装,所以我不知道如何手动安装。

我是 Git 的新手,一般来说是编码,所以这个包的文档中的安装说明对我来说不是很有帮助(对我来说)。

基本上,当我使用 Atom 文本编辑器时,我正在尝试安装/运行/获取 PHP 验证。我该怎么做?

最佳答案

官方documentation for installing packages is here :

( Since March 2015 , official repo 有一个 Atom.io doc )

You can also install packages from the command line using apm.

Check that you have apm installed by running the following command in your terminal:

apm help install

您应该会看到一条打印出的消息,其中包含有关 apm install 命令的详细信息。

If you do not, launch Atom and run the Atom > Install Shell Commands menu to install the apm and atom commands.


You can also install packages by using the apm install command:

apm install <package_name> to install the latest version.

apm install <package_name>@<package_version> to install a specific version.

For example apm install emmet@0.1.5 installs the 0.1.5 release of the Emmet package into ~/.atom/packages.

You can also use apm to find new packages to install:

apm search coffee to search for CoffeeScript packages.

apm view emmet to see more information about a specific package.

关于在 Atom 中手动安装软件包,this thread mentions

You can download the package, unzip or decompress, go to that folder and run: apm link that will create a symbolic link from that package to your ~/.atom/packages folder

The repo can be found via the "Learn More"-button in the package manager.

在你的情况下:

您在 this thread 中找到了类似的过程:

  1. Make sure I do not have module installed already.
  2. git clone https://github.com/AtomLinter/linter-phpcs to ~/Projects/
  3. apm link --dev while being inside of ~/Projects/linter-phpcs.
    It successfully created symlink in ~/.atom/dev/packages/linter-phpcs
  4. Open atom using "atom --dev" command while being in ~/.atom/dev/packages/linter-phpcs

关于git - 在 Atom 中为 Linter 包安装包模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24713553/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com