mihai-vlc / path-autocomplete

Path autocomplete for visual studio code.

Home Page:https://marketplace.visualstudio.com/items?itemName=ionutvmi.path-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[与本项目无关] [功能请求] 写注释的时候自动切换输入法

Ran-Xing opened this issue · comments

  • On Mac computers, switching input methods defaults to command + space
  • In different countries and languages, use your own country's language to write code comments. You can use [idea]'s 「translation」 when converting to English.

So is there an existing plugin that can do this?

My idea is to use idea's sdk to detect the automatic switching of input methods when users enter code comment symbols, which is very friendly to workers with poor English

So, what should I do?

thanks very much🙏

用中文再描述一遍,没看太懂你要干嘛

@tjx666 写注释的时候自动切换输入法的插件怎么写?比如检测当前语言是python,匹配用户输入的#,当用户输入#,自动切换输入法

谢谢哈

你是为数不多的高级开发呀,看你贡献代码量第一😄,其他仓库我都写英文,哈哈哈

思路其实是监听输入了 # 再去修改输入法:

@tjx666 这个恐怕不行,但是思路我有了,只是不知道有没有idea开放的sdk专门用来检测制定字符,因为idea不一定是写java,也可以写rust,也可以写bash,前提是得获取当前用户编辑文件的类型属性判断该检测哪种字符 ,#还是 //

@XRSec 没写过 IDEA 扩展,但我想 IDEA 肯定有 API 获取当前编辑文件的语言和文件修改事件,IDEA 应该是用 Java 写扩展,你可能要找找 JAVA 生态有什么能够触发系统全局快捷键的库。

@tjx666 谢谢