关于保留现有换行符 (Visual LISP IDE) 
每当在其格式化的文本中检测到新行时,Visual LISP 代码格式化程序都可以插入新行。 注意:Visual LISP IDE 仅在 Windows 上可用。 
当“保留现有换行符”选项处于关闭状态时,格式化程序可以将多行表达式压缩到“平面”样式(如果该表达式适合右边距)。 以下示例演示“保留现有换行符”选项的工作原理。 初始文本: (if (/= s "Function canceled")   (princ (strcat 
    "\nError: "
      s)) ;single semicolon cmt
) Formatting result if the option is on (default):
(if (/= s "Function canceled")
  (princ (strcat
           "\nError: "
           s
         )
  )                                ;single semicolon cmt
)
选项关闭时的格式化结果: (if (/= s "Function canceled") (princ (strcat "\nError: " s)) ;single semicolon cmt ) 注意:多行和表达式被压缩为一行。princstrcat 
    
 | 
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1   苏公网安备32011402011833)
GMT+8, 2025-11-4 14:05
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.