LionHeart123 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

multi-line editing in editor window #483

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to place cursor on the few lines in the same time, to add/remove 
characters from many lines at once
2.
3.

What is the expected output? What do you see instead?
Standard multi-line editing behaviour, such as in Notepad++, Wing, Comodo etc. 

What version of the product are you using? On what operating system?
PyScripter-v2.4.1, Win7 x64

Please provide any additional information below.
It would be very nice to be able to edit many lines at once

Original issue reported on code.google.com by vfxdomain on 13 Feb 2011 at 8:01

GoogleCodeExporter commented 9 years ago
I am not sure what you mean.  Could you please provide a more detailed 
description?

Original comment by pyscripter on 3 Mar 2011 at 2:19

GoogleCodeExporter commented 9 years ago
It's simple, i am talking about possibility to edit a few lines at once. In 
Notepad++ for example (and many other editors), you can place cursor on the 
line of text, then holding ctrl and place cursor on other line or lines, so 
when you type you're editing all those lines where you've placed the cursor at 
once.

Original comment by vfxdomain on 3 Mar 2011 at 10:59

GoogleCodeExporter commented 9 years ago
As the original poster said, this is an advanced editing feature that is 
supported by a few "programmer editors". A notable example is Notepad++, but is 
also possible (to a certain exten) in Eclipse.

Basically, it allows you to type the same text on several lines at once. There 
are several ways to achieve this in Notepad++:

- Hold Alt and then drag the mouse. Rather than a regular selection you get a 
"column selection". The selection area is a rectangle, with one vertex where 
you started your mouse drag, and the other opposite vertex where you stopped 
dragging. If you type something the text inside the rectangle is removed and 
substituted with what you type. If the selection spans several lines the text 
you type is repeated on all the lines that the selection spans. Note that it is 
possible to 

- Hold Ctrl and then click on several places. You get multiple cursors (one in 
each place you clicked). If you then type something the text you type is 
repeated wherever you placed a cursor.

This is very handy when you want to change many lines at once.

Original comment by angel.ez...@gmail.com on 21 Aug 2011 at 3:28

GoogleCodeExporter commented 9 years ago
Issue 582 has been merged into this issue.

Original comment by pyscripter on 24 Nov 2011 at 7:03

GoogleCodeExporter commented 9 years ago
Out of curiosity, do these features exist now? 

I think I accidentally triggered vertical/column/box highlight but I'm not sure 
how. I had to restart pyscripter (2.5.30 x86) to get out of the multi select 
mode. It happened in one of my workspaces but not the other.

I am also interested to know if multiple cursors exists and how I can use it. 
Thanks!

Original comment by yho2...@gmail.com on 15 Jul 2013 at 1:17

GoogleCodeExporter commented 9 years ago
To answer my own question: "Column Select" exists in the aforementioned version 
with the default shortcut as "Ctrl+Shift+c". To get out of that mode the 
default shortcut is "Ctrl+Shift+n" for "Normal Select". Though I would prefer 
something like Alt+mouse-drag for column select, I'm glad the feature exists!

Still wondering about multiple line inserts/editing.

Original comment by yho2...@gmail.com on 2 Aug 2013 at 1:45