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

[Bug] 设置tabSize="4"后, 从其他编辑器粘贴\t, 占用了8个空格的长度 #901

Open
JFRabbit opened this issue Sep 19, 2024 · 0 comments

Comments

@JFRabbit
Copy link

🐛 Bug Report

设置tabSize="4"后, 从其他编辑器粘贴\t, 占用了8个空格的长度

"monaco-editor": "^0.30.1"

Steps To Reproduce

前置条件, 设置tabSize="4"

  • OK: 键盘输入tab, 转为4个空格
  • NG: 复制一个tab, 占用了8个空格的长度

Screenshots

截屏2024-09-19 14 53 38

The expected behaviour

正确处理 \t, 不论输入还是粘贴的数据, 与配置保持一致

Possible solution (optional, but very helpful)

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

1 participant