Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Lua Dict CommenterNew to Visual Studio Code? Get it now.
Lua Dict Commenter

Lua Dict Commenter

Chrj616

|
3 installs
| (0) | Free
自动为DICT.Text()调用添加中文翻译注释
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Lua Dict Commenter

VSCode插件,用于自动为Lua文件中的DICT.Text()调用添加对应的中文翻译注释,提高代码可读性。

功能特点

  • 自动查找项目中的CN.lua字典文件
  • 为Lua文件中的DICT.Text()调用添加对应的中文翻译注释

使用方法

  1. 打开包含DICT.Text()调用的Lua文件
  2. 使用以下任一方式触发注释功能:
    • 按下快捷键 Ctrl+Alt+D(Mac上是Cmd+Alt+D)
    • 右键点击编辑器,选择"添加DICT.Text注释"
    • 打开命令面板,输入"添加DICT.Text注释"

示例

添加注释前:

local text = DICT.Text(12449)

添加注释后:

local text = DICT.Text(12449) --[12449] = [=继续进行战斗...]=]

许可证

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft