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文档, 最后才是群里问问

--- 牙叔教程


声明

部分内容来自网络

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









相关文章
|
3月前
|
自然语言处理 API C++
阿里通义推出SmartVscode插件,自然语言控制VS Code,轻松开发应用,核心技术开源!
SmartVscode插件深度解析:自然语言控制VS Code的革命性工具及其开源框架App-Controller
|
6天前
|
机器学习/深度学习 人工智能 自然语言处理
|
4天前
|
人工智能 小程序 程序员
【视频测评 DEMO 参考】VSCode 神级 AI 插件通义灵码:完全免费+实战教程+微信贪吃蛇小程序
VSCode 神级 AI 插件通义灵码:完全免费+实战教程+微信贪吃蛇小程序
89 7
|
6月前
|
iOS开发 MacOS
【Mac系统】解决Vscode中LeetCode插件不能刷剑指offer题库
文章讨论了解决Mac系统中Vscode里LeetCode插件无法刷剑指Offer题库的问题,并提供了一些相关的使用技巧和资源链接。
339 1
|
3月前
|
开发工具 C++ git
利用VS Code提升开发效率的五大插件推荐
本文推荐了五款能显著提升开发效率的VS Code插件:ESLint用于代码质量和风格检查;Prettier自动格式化代码;GitLens增强Git功能;Live Server提供前端实时预览;Docker支持容器管理。
|
4月前
|
自然语言处理 JavaScript 开发者
通义灵码插件:VSCode 的智能编程助手
通义灵码插件:VSCode 的智能编程助手
1711 3
|
4月前
|
前端开发 JavaScript 编译器
2024最新VSCode实用插件推荐,开发效率遥遥领先!超全面,快收藏~
【10月更文挑战第11天】2024最新VSCode实用插件推荐,开发效率遥遥领先!超全面,快收藏~
1106 0
2024最新VSCode实用插件推荐,开发效率遥遥领先!超全面,快收藏~
|
6月前
|
前端开发 Go
vscode10大常用插件
本文介绍了前端开发中常用的工具及VSCode必备插件。推荐使用VSCode作为入门工具,并介绍了WebStorm和HBuilder等其他选项。VSCode插件包括:Open-In-Browser、live-server、Beautify、Code Runner、Image Preview、Path Intellisense、Turbo Console Log、css-auto-prefix、Bracket Pair Colorizer 和 Auto Rename Tag,这些插件能够显著提升开发效率和代码质量。此外,还提供了录制Gif图的工具GifCam。
197 5
|
5月前
|
人工智能 C++ 开发者
verilog vscode 与AI 插件
【9月更文挑战第11天】在Verilog开发中,使用Visual Studio Code(VS Code)结合AI插件能显著提升效率。VS Code提供强大的编辑功能,如语法高亮、自动补全和代码格式化;便捷的调试功能,支持多种调试器;以及丰富的插件生态。AI插件则可自动生成代码、优化现有代码、检测并修复错误,还能自动生成文档。常用插件包括Verilog AI Assistant和Verilog Language Server,可根据需求选择合适的工具组合,提高开发效率和代码质量。
376 2
|
6月前
|
前端开发 IDE 开发工具
OpenSumi问题之OpenSumi 对于 VS Code 插件生态要如何支持
OpenSumi问题之OpenSumi 对于 VS Code 插件生态要如何支持
154 6

热门文章

最新文章