Coder Social home page Coder Social logo

auto-shift-input's Introduction

auto-shift-input

一个vscode插件,能够实现根据光标位置自动切换中英文输入

Video_20231109_092940_467.gif

Features

获取 vscode 的 TextMate 分词引擎的词法作用域判断当前光标是否处于注释语句中,从而达到自动切换中英文输入的目的. ,目前支持win平台,默认兼容微软输入法,其他输入法如果不起作用请尝试修改 SetParam 字段为 6.

同时 YF-Zhao 大佬的文章对本插件开发有着非常大的助力,插件的核心功能基于大佬的方案改进而来

Requirements

此插件运行依赖 HyperScopes Booster 插件:

请务必安装

Extension Settings

"Settings.ChineseModeCode": {
  "type": "number",
  "default": 1025,
  "description": "如果想实现其他的语言的自动切换 请修改此值,默认为中文(1025)"
},
"Settings.EnglishModeCode": {
  "type": "number",
  "default": 0,
  "description": "如果想实现其他的语言的自动切换 请修改此值, 默认为英文(0)"
},
"Settings.GetParam": {
  "type": "number",
  "default": 1,
  "description": "检测输入法状态,默认为微软输入法(0x001)"
},
"Settings.SetParam": {
  "type": "number",
  "default": 2,
  "description": "切换输入法状态,默认为微软输入法(2),QQ/搜狗等(6)"
},
"Settings.CursorColor": {
    "type": "string",
    "default": "",
    "description": "中文模式下的光标颜色 默认不设置"
  }

Plan

  • 尝试兼容Linux

auto-shift-input's People

Contributors

3biubiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

xxxtai xinxing124

auto-shift-input's Issues

shiftlm.getlmCode没办法运行

找不到这个命令
我使用的小狼毫输入法,现在一切到代码里要转英文,它不是转英文,而是直接禁用输入法
我就想着是不是English Mode Code有问题,但是我运行不了这个命令

[建议] 设置指定时长进行检测

  • 场景
    我设置了光标颜色,在注释中有时需要输入英文,但是光标颜色不会进行修改,经常搞混当前语言模式。
    希望能在配置中增加,循环进行检测的指定时长,这样可以自由配置,实时更新光标状态。
    感谢!

无法在WSL里使用

一直提示HyperScopes Booster未激活,需要重新启动,然而重启vscode后,依旧提示未激活

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.