npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

my-lang

v0.2.6

Published

My language support for VS Code

Downloads

5

Readme

Visual Studio Code 的“麦语言”支持

GitHub package.json version

欢迎使用 麦语言 VS Code 扩展! 麦语言文华财经 旗下的一款量化交易软件 麦语言量化交易软件 (WT8) 中的量化交易模型开发编程语言。

功能

麦语言 代码文件的后缀名设置为 .my,并在 VS Code 中打开,MyLang 扩展将会自动激活。该扩展提供了一系列功能,旨在提高您的编程体验:

  • 语法高亮: 为您的 麦语言 代码着色,以提高可读性并减少眼睛的疲劳
  • 智能感知: 根据变量类型、函数定义和导入的模块,获得智能的补全
  • 悬浮提示: 在鼠标悬浮在变量、函数等上时,显示变量、函数等的信息
  • 语法检查: 检查您的 麦语言 代码中的语法错误
  • 代码格式化: 格式化您的 麦语言 代码,自动补全 ; 号等

执行命令

在 VS Code 中按 Ctrl+Shift+P,在 > 后面输入命令名称(允许输入中文)并执行相应命令:

| 命令名称 | 快捷键 | 说明 | | ------------------------------------------------------------ | -------------- | ------------------- | | MyLang: Import models from WT8麦语言: 导入 WT8 模型 | CTRL+SHIFT+I | 导入全部模型 | | MyLang: Run model at WT8麦语言: 在 WT8 中运行 | CTRL+F5 | 运行当前 .my 文件 | | MyLang: Show MyLang document麦语言: 显示麦语言文档 | CTRL+F12 | 可定位当前函数文档 |

扩展设置

| 设置项目 | 说明 | 默认值 | | ---------------------------- | ------------------ | ------ | | myLang.localWT8Path | 本机 WT8 安装目录 | "" | | myLang.maxNumberOfProblems | 要报告的最大问题数 | 100 |

模型注释

在导入模型时,原模型中的参数会自动转换为 模型注释,注释内容包括描述、基本信息、作者信息、参数列表及其默认参数组等:

/**
 * 指数平滑异同移动平均线
 *
 * @version 130112
 *
 * @briefDescription 平滑移动平均线
 * @property 0
 * @editTime 2017年03月06日09:28:24
 *
 * @author data0000
 * @signature 1234567890
 * @telephone 1234567890
 * @mail [email protected]
 * @infoVersion INFOVERSION
 *
 * @param SHORT 1, 40, 12 [0, 0, 0, 0]
 * @param LONG 1, 100, 26 [0, 0, 0, 0]
 * @param M 1, 60, 9 [0, 0, 0, 0]
 */

| 注释参数 | 模型标签 | 说明 | | ------------------- | --------------------------------- | ------------------------ | | /** ... */ | <DESCRIPTION /> | 模型文件的描述 | | @version | <VERSION /> | 模型文件的版本 | | @briefDescription | <BRIEFDESCRIPTION /> | 基本信息中的描述 | | @property | <PROPERTY /> | 基本信息中的属性 | | @editTime | <EDITTIME /> | 基本信息中的最后更新时间 | | @author | <AUTHOR /> | 作者信息中的作者 | | @signature | <SIGNATURE /> | 作者信息中的数字签名 | | @telephone | <TELEPHONE /> | 作者信息中的电话 | | @mail | <MAIL /> | 作者信息中的 Email | | @infoVersion | <INFOVERSION /> | 作者信息中的版本号 | | @param | <PARAM /> <PARAMDEFAULTSET /> | 模型参数列表 |

模型参数: @param 参数名称 最小, 最大, 缺省 [备选参数组1, 备选参数组2, 备选参数组3, 备选参数组4]

已知问题

  • 函数提示内容待完善
  • 语法检查不完整
  • 函数签名提示内容待完善
  • 代码补全待完善