Is there a way to do multiline editing a-la Visual Studio in Sublime?

风流意气都作罢 提交于 2019-12-11 07:15:26

问题


Visual Studio allows selecting a vertical piece of text, and then editing it. One has to hold Shift + Alt and move the cursor up-down left-right to make the selection.

I know there is Ctrl + D multi-cursor thing in Sublime, but it's not quite the same. So is there a way to do the multi-line editing a-la Visual Studio in Sublime?


回答1:


Move cursor where you want, hold ctrl + shift press ↓ a few times.

Press tab, then ← twice, type "Hello World,",

Press esc to leave multi-line mode.




回答2:


You also can perform "square selection" using your mouse middle button.




回答3:


Answer: Standard way: Ctrl + Alt + Cursor (which flips the screen orientation on my laptop). The way that works: Keyboard Column Selection for Sublime Text 2 on Windows



来源:https://stackoverflow.com/questions/27091044/is-there-a-way-to-do-multiline-editing-a-la-visual-studio-in-sublime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!