Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ZhIntlASTNew to Visual Studio Code? Get it now.
ZhIntlAST

ZhIntlAST

qsz

|
233 installs
| (0) | Free
js中文检索工具
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ZhIntlAST README

You need to create a new configuration file in the current directory:.zhIntl.json

Parameter

  • excludeDirectories { Array }: Folder names that do not need to be filtered,
  • excludeFiles { Array }: File names that do not need to be parsed
  • exclude { Array }: File suffixes that do not need to be parsed
  • extensions { Array }: The suffix name of the file that needs to be parsed
  • plugins { Array }: @babel/parser plugins
  • containType { Array }: Type nodes to detect
  • outFile { String }: Output file name

DEMO

vscode插件搜索ZhIntlAST 并安装

    1. 当前目录下新建配置文件.zhIntl.json, 举例
{
    "excludeDirectories": ["api", "__tests__"], // 不需要过滤的文件夹名
    "excludeFiles": ["messages.js"], // 不需要解析的文件名
    "plugins": ["decorators-legacy"] // ast解析插件,如:decorators-legacy:修饰器语法解析插件
}
    1. 在vscode的命令面板, 输入zhintl并选择zhintl
    1. 选择需要过滤的文件夹
    1. 直到提示解析成功则成功,当前目录下,会生成一个zhIntlAst_result.json文件

0.0.1

功能

  • 当前版本仅支持js、jsx解析
  • 暂不支持css、html文件解析

0.0.2

commit

  • 更新:获取当前项目路径

0.0.3

commit

  • 更新:添加默认的ast解析插件:jsx, classProperties

0.0.4

commit

  • 更新:增加vscode最低版本判断:v1.21.0
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft