CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 文档中心

To Find and Replace Text in AutoLISP Source Files

2023-1-8 08:07| 发布者: admin| 查看: 257| 评论: 0|来自: AutoCAD

Find and Replace Text in All Files of the Open AutoLISP Project (AutoLISP Project Manager)

Find a Text String
  1. In Visual Studio Code, on the Activity bar, click AutoLISP Project Manager.
  2. In the AutoLISP Project Manager view, open an AutoLISP project (PRJ) file, if one is not already open.
  3. In the FIND & REPLACE pane, click Find in Project.

  4. In the Find in Project dialog box, enter the text to find in all LSP files.

    Matching code statements and lines are shown in the returned results.

Replace Text String With
  1. In Visual Studio Code, on the Activity bar, click AutoLISP Project Manager.
  2. In the AutoLISP Project Manager view, open an AutoLISP project (PRJ) file, if one is not already open.
  3. In the FIND & REPLACE pane, click Replace in Project.

  4. In the Replace in Project dialog box, enter the text to find in all LSP files.

  5. In the Replace in Project dialog box, enter the text string to replace with.

    Updated code statements and lines are shown in the returned results.

Find and Replace Text in All Files of the Open Folder (Explorer View)

Find a Text String
  1. In Visual Studio Code, on the Activity bar, click Explorer (or click View menu > Explorer).
  2. In the Explorer view, open the folder that contains the AutoLISP source files to be searched.
  3. On the Activity bar, click Search (or click Edit menu > Find in Files).
  4. In the Search view, in the Search text box on the SEARCH pane, enter the text to find in all files.

    Matching code statements or lines are shown in the returned results.

Replace Text String With
  1. In Visual Studio Code, on the Activity bar, click Explorer (or click View menu > Explorer).
  2. In the Explorer view, open the folder that contains the AutoLISP source files to be searched.
  3. On the Activity bar, click Search (or click Edit menu > Replace in Files).
  4. On the Search view, in the Search text box on the SEARCH pane, enter the text to find in all files.

    Matching code statements and lines are shown in the returned results.

  5. In the Replace text box, enter the text string to replace with.

    A preview of the replacement results is shown in the results.

  6. Do one of the following:
    • Replace All Text Strings - Click Replace All, to the right of the Replace text box.
    • Replace an Individual Instance of a Text String - Move the pointer cursor over the code statement or line that contains the text string to find and click Replace.

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-19 12:13

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部