Notepad++内置变量

本文详细介绍了 Notepad++ 中内置的各种变量及其用途,包括当前文档的完整路径、所在目录、文件名、文件扩展名等。这些变量可用于自定义用户命令、宏和其他自动化任务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


https://gerardnico.com/wiki/ide/notepad/variable

http://docs.notepad-plus-plus.org/index.php/Defining_User_Commands


NotePad++ 的内置变量及含义:

Notepad++ - System Variable

1 - List

FULL_CURRENT_PATH The fully qualified path to the current document. E:\myPath\welcome.html
CURRENT_DIRECTORY The directory the current document resides in E:\myPath
FILE_NAME The file name welcome.html
NAME_PART The filename without the extension welcome
EXT_PART The extension of the current document html
NPP_DIRECTORY The directory that contains the notepad++.exe executable that is currently running  
CURRENT_WORD The currently selected text in the document  
CURRENT_LINE The current line number that is selected in thedocument (0 based index, the first line is 0).  
CURRENT_COLUMN The current column the cursor resides in (0 based index, the first position on the line is 0).
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值