category
tags
type
status
slug
date
summary
icon
password
驼峰翻译助手
分享一个很有用的VisualStudioCode 插件,支持将你的变量重命名,例如驼峰命名转中划线:
faTh
→ fa-th
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F477d420b-ec1c-4721-b243-6767aa529a50%2FUntitled.png?table=block&id=3bef5137-9e92-4aeb-9154-69fa8170f268)
并且支持将中文变量直接重命名为英文变量
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F4482d0b3-c599-4dad-952b-b80f42688660%2FUntitled.png?table=block&id=fa593166-d46d-4aab-9cf8-10c838cfff0c)
用法很简单,选中变量,按下
cmd
+shift
+T
, T 表示 translate(翻译)的首字母,说明
直接在VSCode的插件市场搜索即可安装
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7e7518fc-bf2f-4da3-8f75-9f43649138a1%2FUntitled.png?table=block&id=5c8ca30a-a217-4db5-9460-b69151e54241)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F2f329257-8fda-40d9-bd6b-02f24dc84c21%2FUntitled.png?table=block&id=056254de-5e83-4545-a995-9bf8700370b2)
有问题直接报issue
英文不好 写代起变量时候 你是否一直这样干?
- 打开翻软件
- 输入中文
- 复制翻译结果
- 粘贴英文修改成相应的命名格式
现在你只需要按动图这样来就可以了
- 选中输入文案 一键得到翻译结果(悄悄告诉你 直接选中英文还可以跳过翻译哦 快速改变命名格式)
- 选择响应的命名格式
![notion image](https://github.com/SvenZhao/var-translation/raw/HEAD/images/vscode1.gif)
快捷键
支持的翻译引擎
参考文章
- 作者:NotionNext
- 链接:https://tangly1024.com/translate-refactor-plugin-tuofengfanyi
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
相关文章