Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加一个快捷键用于切换代码块的语言 #14126

Open
heartacker opened this issue Feb 17, 2025 · 1 comment
Open

添加一个快捷键用于切换代码块的语言 #14126

heartacker opened this issue Feb 17, 2025 · 1 comment

Comments

@heartacker
Copy link

heartacker commented Feb 17, 2025

In what scenarios do you need this feature?

代码块, 不是很方便用键盘编辑和输入代码块语言,
对于自己写的代码块, 自己可以方便的在··· 之后输入 python 等语言标识

但实际对于剪藏的,很多时候是没有标识的,很需要一个快捷键去更改,现在只能用鼠标。

Describe the optimal solution

建议用 alt +enter 切换到代码语言更改焦点,方便用户直接用键盘就可以更改语言。
这个快捷键也不会有任何冲突。

Describe the candidate solution

No response

Other information

参考一些其他的markdown 编辑器,当焦点在代码块里面的时候,就可以按这个快捷键去设置当前代码块的语言。
No response

@oufu99
Copy link

oufu99 commented Feb 17, 2025

我也遇到过一个代码块的问题,那个代码块里面,会显示一些不知道哪里来的代码类型,我也没主动设置过,换成了默认主题也是一样

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants