autojs之vscode必装插件

简介: Color HighlightHighlight web colors in your editor

Color Highlight

Highlight web colors in your editor

Ponicode

AI辅助-单元测试

Remove empty lines

Remove blank lines from document or selection.

Dependency Cruiser Extension

Visual Studio Code Extension to build dependency graphs using dependency-cruiser. Visualize module dependencies from any file

微信图片_20220624134540.png


EditorConfig for VS Code

This plugin attempts to override user/workspace settings with settings found in .editorconfig files. No additional or vscode-specific files are required. As with any EditorConfig plugin, if root=true is not specified, EditorConfig will continue to look for an .editorconfig file outside of the project.


根目录创建文件 .editorconfig

文件内容

# Editor configuration, see http://editorconfig.org
# 表示是最顶层的 EditorConfig 配置文件
root = true
[*] # 表示所有文件适用
charset = utf-8 # 设置文件字符集为 utf-8
indent_style = space # 缩进风格(tab | space)
indent_size = 4 # 缩进大小
end_of_line = lf # 控制换行类型(lf | cr | crlf)
trim_trailing_whitespace = true # 去除行首的任意空白字符
insert_final_newline = false # 始终在文件末尾插入一个新行
[*.md] # 表示仅 md 文件适用以下规则
max_line_length = off
trim_trailing_whitespace = false


eslint配置文件例子

.eslintrc.js

module.exports = {
  env: {
    browser: true,
    es2021: true,
    node: true
  },
  extends: [
    'plugin:vue/essential',
    'airbnb-base',
    'plugin:prettier/recommended',
    'plugin:jest/recommended'
  ],
  parserOptions: {
    ecmaVersion: 'latest',
    parser: '@typescript-eslint/parser',
    sourceType: 'module'
  },
  plugins: ['vue', '@typescript-eslint'],
  rules: {
    'no-plusplus': [
      'off',
      {
        allowForLoopAfterthoughts: true
      }
    ],
    'no-console': 'off',
    'import/no-unresolved': 'off',
    'import/extensions': 'off',
    'import/no-absolute-path': 'off',
    'import/no-extraneous-dependencies': 'off',
    'no-param-reassign': [
      'error',
      {
        props: true,
        ignorePropertyModificationsFor: [
          'e', // for e.returnvalue
          'ctx', // for Koa routing
          'req', // for Express requests
          'request', // for Express requests
          'res', // for Express responses
          'response', // for Express responses
          'state' // for vuex state
        ]
      }
    ]
  }
}


prettier配置文件例子

.prettierrc

{
  "useTabs": false,
  "tabWidth": 2,
  "printWidth": 100,
  "singleQuote": true,
  "trailingComma": "none",
  "bracketSpacing": true,
  "semi": false
}


Sass/Less/Stylus/Pug/Jade/Typescript/Javascript Compile Hero Pro

🚀Easy to compile ts, tsx, scss, less, stylus, jade, pug and es6+ on save without using a build task.


Luna Paint — Image Editor

An image editor built into VS Code, supports png, jpg, webp, bmp and ico formats.

AnGitIgnored

Tool that facilitates the management of .ignore files

CodeSnap

Take beautiful screenshots of your code

expand-region

选中配对括号里的内容

快捷键: Ctrl+W

Paste JSON as Code

Copy JSON, paste as Go, TypeScript, C#, C++ and more

如果你剪贴板上有个对象, 用这个可以生成与对象对应的interface


Auto.js-Pro-Ext


功能: vscode和手机上的autojs通信


Autojs Clipboard


同步手机剪贴板到电脑剪贴板


原理:


电脑端开启一个服务监听请求, autojs监听到剪贴板变化, 就提交剪贴板信息到电脑


Codelf

Search Github, GitLab to find real-world usage variable names.

输入中文, 显示英文, 用于给变量起英文名字

网址





















Bookmarks


书签


Bracket Pair Colorizer 2


彩色括号第2个版本, 版本1已经不再维护, github上显示最后一次维护是20180916

本插件可以卸载了, 因为vscode1.60已经内置了括号对着色,

我们可以通过设置 "editor.bracketPairColorization.enabled": true 来启用括号对着色。所有颜色都是主题化的,最多可以配置六种颜色。


Chinese (Simplified) Language


人尽皆知


Code Runner


运行各种语言, 各语言的环境还是要自己搭建的


Code Spell Checker


检查你的代码是否拼写正确, 十分推荐


Draw.io Integration


画流程图


ESLint


检查你的代码是否符合规范, 五颗星


Fix VSCode Checksums


冷门插件, 禁止vscode的某个弹框警告


GitLens — Git supercharged


可以查看代码历史修改


indent-rainbow


让空格显示彩色, 代码结构更加清晰


koroFileHeader


添加注释, 代码头部, 函数的注释都可以

文件头部注释快捷键

  • 记录文件信息/文件的传参/出参,设置个性签名、留下QQ、微信联系方式、输入空行等等
  • 支持用户高度自定义注释选项, 适配各种需求的注释形式。
  • 保存文件的时候,自动更新最后的编辑时间和编辑人
  • windowctrl+win+i,macctrl+cmd+i,linux:ctrl+meta+i,Ubuntu:ctrl+super+i

函数注释注释快捷键

更多关于函数参数自动请查阅配置-函数注释自动提取函数的参数文档

  • 将光标放在函数行或者将光标放在函数上方的空白行。
  • 自动解析函数参数,生成函数参数注释。
  • 快捷键:windowctrl+win+t,macctrl+cmd+t,linux: ctrl+meta+t, Ubuntu: ctrl+super+t


Markdown All in One


查看readme专用


Material Icon Theme


主题


Path Intellisense


模块导入, 智能提示


Prettier - Code formatter


格式化代码


Project Manager


项目管理, 用来快速打开项目


Remote - SSH


远程编写服务器代码, 相当于在服务器上安装了vscode


Tabnine Autocomplete AI


代码自动补全, 根据你的习惯来补全代码, 也可能不符合你的习惯

听说有限制

微信图片_20220624134540.png


Kite AutoComplete AI Code


Kite是一个人工智能驱动的编程助手,可以帮助您在VisualStudio代码中更快地编写代码

和tabnine是同行


GitHub Copilot

收费 $10 / month

Your AI pair programmer

GitHub Copilot is an AI pair programmer which suggests line completions and entire function bodies as you type. GitHub Copilot is powered by the OpenAI Codex AI system, trained on public Internet text and billions of lines of code.

To learn more about GitHub Copilot, visit copilot.github.com.

Todo Tree


标记代码哪里需要修改


Trailing Spaces


多余的空格显示红色


XML Formatter


写autojs的xml布局专用


YAML


yaml文件专用, yaml作为配置文件, 还行

change-case


更改当前选择的单词的格式, 比如

大小写,

js的驼峰camel,

python的蛇形snake,

css的串式kebab,

java的匈牙利HN

Comment Divider

分割代码块


HTTP Server / HTML Preview

A Simple HTTP Server / HTML Preview for Visual Studio Code.


使用方法:

点击F1, 再输入

Simple HTTP Server: Create HTTP Server With Current File


点击该命令, 然后再右下角选择

  1. Open in Browser
  2. Open in Visual Studio


设置鼠标渐隐渐显

微信图片_20220624130601.jpg


名人名言

思路是最重要的, 其他的百度, bing, stackoverflow, 安卓文档, autojs文档, 最后才是群里问问

--- 牙叔教程


声明

部分内容来自网络

本教程仅用于学习, 禁止用于其他用途









相关文章
|
1月前
|
人工智能 自然语言处理 算法
国产新型AI编程助手—DevChat AI插件在VSCode中的应用
国产新型AI编程助手—DevChat AI插件在VSCode中的应用
|
3月前
|
人工智能 JavaScript 程序员
Fitten Code:在VSCode插件市场备受欢迎的原因是什么?
随着AI技术的不断发展,AI在编写代码方面的能力也日益强大。充分利用AI的能力能够显著提高代码编写的效率和质量。今天我将向大家介绍一款备受瞩目的AI代码神器——Fitten Code,让我们一同揭开它神秘的面纱!
274 3
|
17天前
Vscode 插件-代码敲出不同的特效
Vscode 插件-代码敲出不同的特效
|
1月前
|
NoSQL 关系型数据库 开发工具
最新最全 VSCODE 插件推荐(2023版)
最新最全 VSCODE 插件推荐(2023版)
116 0
|
1月前
|
Java
VSCode 插件Code Runner 中文提示乱码
VSCode 插件Code Runner 中文提示乱码
|
1月前
|
开发者
|
1月前
|
JavaScript 前端开发 程序员
非专业程序员常用vscode插件
这里的vscode插件, 有四分之一你没用过, 这里的vscode设置, 80%你没设置过, 挖宝随缘
49 5
|
2月前
|
Web App开发 JavaScript 前端开发
推荐常用的VSCode插件
推荐常用的VSCode插件
89 2
|
3月前
|
Go
VsCode(Visual Studio Code) 安装插件教程
VsCode(Visual Studio Code) 安装插件教程
92 0
|
3月前
|
算法 Java
vscode插件webgl editor阅读,入门antlr
vscode插件webgl editor阅读,入门antlr
39 0