vscode-ihyperdb-snippet 插件说明 README
这是 vscode-ihyperdb-snippet 插件的说明文档
This is the README for extension "vscode-ihyperdb-snippet".
插件地址 -- Extension in VS Code Market
git仓库地址 -- Git repo
功能 Features
此插件提供 iHyperDB 计算点表达式的 常见逻辑语法、函数、常用代码的补全
This extension provides common snippets of syntax / built-in functions / practical codes for iHyperDB calculation point formula's configuration.
表达式文档见:iHyperDB手册-计算点表达式
Official online manual about calculation point see the link above.
下方说明格式 Format of the following content
说明:补全需要输入的关键词 1 / 关键词 2 / ... / 关键词 n
(输入任意一个关键词的一部分就能能显示相应的补全选项)
command in iHyperDB
Meanings in CH-zh: Keyword 1 / Keyword 2 / ... / Keyword 3
(the snippet floating window pops up when you input part of a keyword)
常见逻辑语法补全 Syntax snippets
if...else
指令:ihdifelse / ihdifel
if...elseif...
指令:ihdifelif / ihdifelseif
Condition
(三元运算符)指令:ihdCondition
表达式内建函数补全 Built-in functions snippets
FilExtream()
极大值过滤:ihdFilExtream / ihdFilExtreme / Filter Extreme iHD
TagYear()
点的快照时间的年份:ihdTagYear / Year of tag time iHD
TagMonth()
点的快照时间的月份:ihdTagMonth / Month of tag time iHD
TagDay()
点的快照时间的日:ihdTagDay / Day of tag time iHD
TagHour()
点的快照时间的小时:ihdTagHour / Hour of tag time iHD
TagMinute()
点的快照时间的分钟:ihdTagMinute / Minute of tag time iHD
TagSecond()
点的快照时间的秒:ihdTagSecond / second of tag time iHD
TagYearday()
点的快照时间是今年的第几天:ihdTagYearday / day in year of tag time ihd
TagDaysec()
点的快照时间是今天的第几秒:ihdTagDaysec / second of day of tag time ihd
TagUnixsec()
点的快照时间的 Unix 时间戳:ihdTagUnixsec / Unix timestamp of tag iHD
PrevVal()
点的上一次记录的值:ihdPrevVal / Previous value of tag iHD
NoOutput()
不将计算结果进行保存:ihdNoOutput / Pass / Do nothing / No Operation
PreMs()
点前一条记录的毫秒值:ihdPreMs / Previous millisecond of tag iHD
NoneRecord()
检查点是否有历史记录:ihdNoneRecord / is record of tag exists / No record of tag / record is empty
PreBadVal()
点前一条记录的数据质量:ihdPreBadVal / Previous record of tag is bad / "record quality / status is bad/good"
常用代码补全 Practical Code snippets
trigUP
上升沿:ihd Positive Transition (P) / ihdTriggerUP
trigDown
下降沿:ihd Negative Transition (N) / ihdTriggerDown
compare3
在两数区间:ihdcompare3 / x<=y<=z / x>=y>=z / between / 3 vars compare
工作要求 Requirements
无
No additional requirement.
插件设置 Extension Settings
需要在 c 语言模式下,插件才能提供自动补全功能
This snippet extension runs ONLY in C language mode
已知问题 Known Issues
部分补全规则会与 c 语言本身的补全相冲突,这是由 iHD 语法决定的
iHyperDB has its unique syntax rules so that some snippets conflict with C language syntax check rules.
版本发布 Release Notes
0.0.1
最初版本。
Initial release.
0.0.2 & 0.0.3 & 0.0.4
更新 README.md
Update README.md.