Skip to content

Commit 41e6c49

Browse files
Update README.md to append a translation in Simplified Chinese (#172)
Update README.md to append a translation in Simplified Chinese (#172)
1 parent 02f9f92 commit 41e6c49

File tree

3 files changed

+120
-2
lines changed

3 files changed

+120
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ utils/autolispext.i18.helper/packages
2424

2525
extension/src/test/OutputFile
2626

27+
*.vsix

README.md

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Visual Studio Code Extension for AutoCAD® AutoLISP
1+
# <span id="visual-studio-code-extension-for-autocad®-autolisp">Visual Studio Code Extension for AutoCAD® AutoLISP<span>
2+
3+
[中文简体](#autocad®-autolisp-visual-studio-code-扩展)
24

35
This extension adds support for AutoCAD AutoLISP source (LSP) files to Visual Studio Code. It allows you to edit and debug your lisp programs with AutoCAD 2021.
46
For information on creating lisp programs for AutoCAD with the AutoLISP programming language, see the:
@@ -105,3 +107,118 @@ All other brand names, product names or trademarks belong to their respective ho
105107
### Third-Party Trademarks, Software Credits and Attributions
106108

107109
See [here](NOTICE.md).
110+
111+
# <span id="autocad®-autolisp-visual-studio-code-扩展">AutoCAD® AutoLISP Visual Studio Code 扩展</span>
112+
113+
[English](#visual-studio-code-extension-for-autocad®-autolisp)
114+
115+
这是一个 Visual Studio Code 扩展,用来支持在 VSCode 中编写 AutoCAD AutoLISP 源文件(LSP)。它允许您使用 AutoCAD 2021 编辑和调试 lisp 程序。有关使用 AutoLISP 编程语言为 AutoCAD 创建 lisp 程序的信息,请参见:
116+
117+
- AutoCAD AutoLISP: [Developer’s Guide](https://www.autodesk.com/autolisp-developers-guide)
118+
- AutoCAD AutoLISP: [Reference](https://www.autodesk.com/autolisp-reference)
119+
- AutoCAD AutoLISP: [Tutorials](https://www.autodesk.com/autolisp-tutorials)
120+
121+
该扩展开源,在 Apache License v2.0 下发布。
122+
123+
非常感谢您的反馈!如果您有任何建议,请在[此处](https://github.com/Autodesk-AutoCAD/AutoLispExt/issues)创建一个 Issue。
124+
125+
## 特性
126+
127+
1. AutoLISP 调试
128+
- 启动/附着调试
129+
- 调试控制台
130+
- 断点
131+
- 单步调试/单步跳出/单步跳过
132+
- 变量
133+
- 调用堆栈
134+
- 出错时跳出
135+
2. AutoLISP 编辑器
136+
- 语法高亮
137+
- 代码补全、代码片段
138+
- 智能括号
139+
- 代码格式化(紧凑或宽松)
140+
- 自动缩进
141+
- 通过上下文菜单轻松访问在线文档(选择敏感)
142+
- 转到定义
143+
- 插入代码区域
144+
3. AutoLISP 项目
145+
- 打开项目(.prj)
146+
- 创建项目
147+
- 将 .lsp 文件添加到项目
148+
- 从项目中删除 .lsp 文件
149+
- 在项目中搜索/查找
150+
151+
## 开始
152+
153+
1. 在系统上安装受支持的 AutoCAD 版本。
154+
2. 安装此扩展。
155+
3. 打开要处理的 AutoLISP 源程序(LSP)文件所在的文件夹。或者通过 VSCode 侧栏打开 AutoLISP 项目文件。
156+
4. 打开要修改或调试的 LSP 文件。
157+
5. 选择调试配置,并开始调试当前 LSP 文件。
158+
159+
## 安装
160+
161+
可以通过 VSCode 中的扩展面板搜索并安装此扩展。搜索 AutoCAD AutoLISP Extension。
162+
也可以通过在 VSCode 命令面板中输入以下命令来安装此扩展:依次单击`视图` > `命令面板…`(或按 Ctrl+Shift+P)> 键入 ext install autodesk.autolispext 后回车。
163+
164+
## 支持平台
165+
166+
| Windows | Mac | Linux |
167+
| :-----: | :--: | :---: |
168+
<font color=green>√</font> | <font color=green>√</font> | <font color=red>x</font> |
169+
170+
## 如何使用
171+
172+
1. 打开一个 LSP 文件。
173+
2. 依次单击`运行` > `启动调试` (或按 F5)。
174+
3. 然后选择以下调试配置之一:
175+
- AutoLISP Debug: Launch——启动 AutoCAD 应用程序的新实例以调试当前 LSP 文件。
176+
- AutoLISP Debug: Attach——将当前 LSP 文件附加到正在运行的 AutoCAD 应用程序实例以进行调试。如果出现提示,请指定 AutoCAD 可执行文件(Windows 上的 acad.exe 或 Mac 上的 AutoCAD)的绝对路径。
177+
178+
注意:为了避免每次单击`运行` > `启动调试`(或按 F5)时都指定此路径,此路径将由扩展自动保存。有关配置扩展的其他信息,请参见*如何配置 AutoCAD 路径*
179+
180+
## 如何配置 AutoCAD 路径
181+
182+
1. 在 Visual Studio Code 中,依次单击`文件` > `首选项` > `设置`
183+
2. 在“用户”选项卡下,展开“扩展”,然后单击“AutoCAD® AutoLISP 配置“。
184+
3. 更新 Debug: Attach Process 以指定 Debug: Attach 可以附着的进程名称,以过滤无关进程。
185+
4. 更新 Debug: Launch Program 以指定要与 Debug: Launch 一起使用的 AutoCAD 可执行文件的路径。
186+
5. 更新 Debug: Launch Parameters 以指定 AutoCAD 启动参数。
187+
188+
注意:配置时请确保将以下示例中的启动程序路径(Launch Program)替换为实际的 AutoCAD 程序路径。
189+
190+
示例(Windows)
191+
192+
- Launch Program:C:\Program Files\Autodesk\AutoCAD \<release\>\acad.exe
193+
- Attach Process:acad
194+
195+
示例(Mac OS)
196+
197+
- Launch Program:/Applications/Autodesk/AutoCAD \<release\>/AutoCAD \<release\>.app/Contents/MacOS/AutoCAD
198+
- Attach Process:AutoCAD
199+
200+
更多信息请参阅[联机文档](https://www.autodesk.com/autolisp-extension)
201+
202+
## 注意
203+
204+
1. 其他 AutoLISP 扩展可能与此扩展冲突。如果无法在 LSP 文件中设置断点或无法使用启动/附着调试配置,则应禁用或卸载所有其他 AutoLISP 扩展。
205+
2. 在 Mac® OS 上使用此扩展时,扩展设置中的“Launch Program”应为“.../AutoCAD &lt;release&gt;.app/Contents/MacOS/AutoCAD”,而不是 AutoCAD &lt;release&gt;.app 的绝对路径。
206+
3. 对于 AutoCAD 专用工具集或基于 OEM 的产品,产品名称可能与 AutoCAD 或 acad.exe 不同。要将此扩展用于这些产品,请根据要调试的产品在扩展设置中设置对应“Launch Program”的值。
207+
4. 如果以管理员身份启动 AutoCAD,则同样应以管理员身份启动 Microsoft Visual Studio Code。否则,Microsoft Visual Studio Code 将无法找到用于附加调试的 AutoCAD 进程。
208+
209+
## 法律通告
210+
211+
Visual Studio Code Extension for AutoCAD® AutoLISP © 版权所有 2020 Autodesk Inc. 保留所有权利。
212+
213+
### 隐私
214+
215+
要了解有关 Autodesk 联机和脱机隐私文档的详细信息,请参见 [Autodesk 隐私声明](https://www.autodesk.com/company/legal-notices-trademarks/privacy-statement)
216+
217+
### Trademarks
218+
The license does not grant permission to use the trade names, trademarks, service marks, or product names of Autodesk, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of any notice file. Autodesk, the Autodesk logo, AutoCAD and AutoLISP are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. Autodesk is not responsible for typographical or graphical errors that may appear in this document.
219+
220+
All other brand names, product names or trademarks belong to their respective holders.
221+
222+
### Third-Party Trademarks, Software Credits and Attributions
223+
224+
See [here](NOTICE.md).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@
659659
"fs-extra": "^8.1.0",
660660
"jschardet": "2.1.1",
661661
"os-locale": "5.0.0",
662-
"vsce": "1.88.0",
662+
"vsce": "^2.5.0",
663663
"vscode-languageclient": "4.2.0",
664664
"vscode-nls": "3.2.5",
665665
"vscode-ripgrep": "1.5.8"

0 commit comments

Comments
 (0)