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

分屏编辑预览模式代码块粘贴首行缩进消失 #745

Closed
thisdaydayde opened this issue Sep 6, 2020 · 7 comments
Closed

分屏编辑预览模式代码块粘贴首行缩进消失 #745

thisdaydayde opened this issue Sep 6, 2020 · 7 comments
Assignees
Milestone

Comments

@thisdaydayde
Copy link

请选择你遇到问题时使用的编辑模式:

  • sv 分屏编辑预览模式

描述问题

分屏编辑模式下,将带有缩进(整体有tab)的代码片段复制进来时,缩进就乱掉了

截屏或录像

原本在vscode中的代码:
image
整个复制(连同缩进)粘贴到编辑器中后缩进异常:
image

另外,所见在所得模式理上面的代码粘贴后缩进正常,但是如果切换为分屏模式的话,则缩进也会乱

@Vanessa219
Copy link
Owner

复制前可以先把代码块缩进到顶层再进行复制
image

@thisdaydayde
Copy link
Author

复制前可以先把代码块缩进到顶层再进行复制
image

可是如果想要代码保持缩进呢?

@Vanessa219
Copy link
Owner

缩进是可以保持的,不会移除原有缩进,只是拷贝的时候需要注意第一个缩进有没有被拷贝进来

@thisdaydayde
Copy link
Author

缩进是可以保持的,不会移除原有缩进,只是拷贝的时候需要注意第一个缩进有没有被拷贝进来

所有缩进都复制了的,这个问题在所见所得模式和即时模式都是没问题的,只是分屏下有问题

@Vanessa219
Copy link
Owner

看上去是只有第一个缩进没有复制进来
image

@thisdaydayde
Copy link
Author

看上去是只有第一个缩进没有复制进来
image
我把操作录屏了:
Untitled

@Vanessa219 Vanessa219 changed the title 分屏编辑预览模式 带有缩进的代码粘贴后缩进会乱 分屏编辑预览模式代码块粘贴首行缩进消失 Sep 7, 2020
@Vanessa219 Vanessa219 self-assigned this Sep 7, 2020
@Vanessa219 Vanessa219 added this to the 3.5 milestone Sep 7, 2020
@Vanessa219 Vanessa219 reopened this Sep 7, 2020
@Vanessa219 Vanessa219 assigned 88250 and unassigned Vanessa219 Sep 9, 2020
@Vanessa219 Vanessa219 modified the milestones: 3.5, 3.6 Oct 11, 2020
@Vanessa219 Vanessa219 modified the milestones: 3.6, 3.7 Nov 23, 2020
@Vanessa219 Vanessa219 modified the milestones: 3.7, 3.8 Jan 19, 2021
@Vanessa219
Copy link
Owner

#1319

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

No branches or pull requests

3 participants