Giter Club home page Giter Club logo

autojs-sublime-plugin's Introduction

AutoJs-Sublime-Plugin

桌面编辑器Sublime Text 3的插件。可以让Sublime Text 3支持AutoJs开发。目前功能比较基础,仅支持:

  • 在Sublime的控制台实时显示AutoJs的日志与输出
  • 在Sublime的菜单栏中增加Run, Stop, Rerun, Stop all等选项。可以在手机与电脑连接后把Sublime编辑器中的脚本推送到AutoJs中执行,或者停止AutoJs中运行的脚本。

How to use

Step 1

Sublime菜单Preferences(首选项)->Browse Package(浏览插件)。这将会打开一个文件夹。进入该文件夹的上一级,找到Installed Packages文件夹。将autojs.sublime-package复制到里面。重启Sublime,在菜单栏中看到AutoJs选项表示安装成功。

Step 2

菜单栏中AutoJs->Start Server启动服务。通过Ctrl+`或者菜单View->Show Console显示控制台。在控制台中出现waiting for accepting表示启用成功。

Step 3

将手机连接到电脑启用的Wifi或者同一局域网中。通过命令行ipconfig(或者其他操作系统的相同功能命令)查看电脑的IP地址。在AutoJs的侧拉菜单中启用调试服务,并输入IP地址。显示Connected表示连接成功。

Step 4

然后就可以通过在Sublime Text打代码,在手机运行啦~

可以借助DDMS来抓取布局信息。

Commands

  • Run 运行脚本
  • Rerun 停止当前文件对应的脚本并重新运行
  • Stop 停止当前文件对应的脚本
  • StopAll 停止所有正在运行的脚本
  • Save 保存当前文件到手机的脚本默认目录。(文件名会加上前缀)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.