代码段存储在snippets.json文件中,该文件是 AutoCAD AutoLISP 扩展的一部分;您可以添加新代码段或编辑现有代码段,以提高编写 AutoLISP 程序的效率。snippets.json文件是用 JSON 编写的,支持 C 样式的注释。每个代码段应包含以下属性:
下面显示了代码段的基本定义: "ifprogn": { "prefix": "ifp", "body": [ "(if (${1:testexpr})", "\t(progn", "\t\t(${2:thenexpr})", "\t)", ")" ], "description": "if progn expression" }
|
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )
GMT+8, 2024-5-27 09:06
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.