How can I write to multiple lines simultaneously in Geany?

邮差的信 提交于 2019-12-11 02:27:24

问题


I want to modify the beginning of every line of a txt file in Geany. Somehow it is possible to write in multiple lines at the same time (maybe with box selection?). How to do this?


回答1:


You need to install before the plugin Extra Selection.

For my configuration (Debian/Buster, Geany 1.33) I add to configure shortcuts key. See plugin manual for more details :

Usage :

Under Tools -> Extra Selection, there are 7 new items: "Column Mode", "Select to Line", "Select to Matching Brace", "Toggle Rectangular/Stream", "Set Anchor", "Select to Anchor" and "Rectangle Select to Anchor". Normally these should be bound to keys, for example Alt-C, Alt-Shift-L, Ctrl-Shift-B, Ctrl+2, F12, Shift-F12 and Alt-Shift-F12.




回答2:


Select the region, while pressing Alt-Shift, then move around with cursor with arrows.



来源:https://stackoverflow.com/questions/52024578/how-can-i-write-to-multiple-lines-simultaneously-in-geany

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