Is multi-caret editing bugged?
-
@earth-invader said in Is multi-caret editing bugged?:
Isn’t this how many other text editors works?
e.g. Visual Studio, Sublime, you name it.Nope.
Ctrl+Alt+Up and Ctrl+Alt+Down do no such thing in Visual Studio, or in Notepad++ with BetterMultiSelection btw. (In VS, it seems to be accessing the little tabbar down arrow)
Alt+Shift+Up and Alt+Shift+Down start a column-mode selection in both Notepad++ and in Visual Studio. And in Visual Studio, after making a selection in column mode, if I right arrow or up arrow, it leaves column-mode selection mode and goes back to just moving a single cursor, which is exactly what Notepad++ does without the BetterMultiSelection:
(this screenshot was made without BetterMultiSelection plugin)
In my tests, NPP and VS do the same thing with that sequence.
-
Alt+Shift+Up and Alt+Shift+Down start a column-mode selection in both Notepad++ and in Visual Studio. And in Visual Studio, after making a selection in column mode, if I right arrow or up arrow, it leaves column-mode selection mode and goes back to just moving a single cursor, which is exactly what Notepad++ does without the BetterMultiSelection:
Probably because you are using an old version. ^_^"
I can 't post gif here so I uploaded it to google drive.
It now support everything I mentioned. Can also undo without leaving multi-caret.
-
Can you ever make a post that contains complete information on a point??
You hint that Peter is using an “old version” (of Visual Studio) but you don’t specify what “non-old” version you are using.
Nobody wants to (or can) access your google drive, so I can’t see what point you’re trying to make there.
You show a partial GUI of VS, but it took me a while to find the same thing in it (I’m not an expert user of VS for editing, as I prefer N++, so I don’t know its setup well); here’s a more complete UI for others that have it and might be interested (start with the Tools > Customize… menu command):
I pretty much agree with Peter’s prior statements. Anyway, the bottom line is I really still don’t understand what you are talking about; sorry to say (and I think I’ve put the effort in for trying to understand).
-
@alan-kilborn said in Is multi-caret editing bugged?:
You hint that Peter is using an “old version” (of Visual Studio)
I’m sure I do – we use a 2017 at work, and I knew there was a 2019 after (and when I looked it up after seeing the post, there is also a 2022 version, apparently). So I shouldn’t be surprised that there are new features; sorry for my out-of-date information.
And once again, in case I wasn’t clear enough for @Earth-Invader:
- The Notepad++ developers have made it quite clear that they are perfectly happy to leave certain features in the hands of plugin developers; since BetterMultiSelection makes column+multi-select work more like you expect multi-select to work based on your “modern VS” (and presumably Sublime) experience, then use that plugin.
- If the “undo without leaving multi-caret” is important to you, report the bug in the appropriate location, as described in the FAQ, as that is the only way that anything will have a chance of being done about it.
-
@peterjones said in Is multi-caret editing bugged?:
we use a 2017 at work, and I knew there was a 2019 after (and when I looked it up after seeing the post, there is also a 2022 version, apparently). So I shouldn’t be surprised that there are new features; sorry for my out-of-date information.
But I highly doubt that 2017 would not have the same keyboard setup choice – maybe an ancient version – wait, I’ll check, I also have VS2008 – time passes while he looks it up… – even that “old” version has it:
-
But I highly doubt that 2017 would not have the same keyboard setup choice
Sorry, I guess I wasn’t clear: VS 2017 has column selection mode, which is what
Edit.LineUpExtendColumn
does.The point that I believe @Earth-Invader was trying to make about my older VS is that the unknown newer version of VS which @Earth-Invader uses apparently makes the VS column-selection mode have more features, so that it behaves more like the Notepad++&BetterMultiSelection combo.
So, for VS2017 and plain-Notepad++, the sequence of
Shift+Alt+DownArrow Shift+Alt+DownArrow Shift+Alt+DownArrow Shift+Alt+RightArrow Shift+Alt+RightArrow
will create a rectangle 4rows x 2columns, thenRight Arrow
will take you out of column/multi-selection and have a single cursor at the bottom-right corner of that original rectangle:
Contrariwise, in Notepad++ with BetterMultiSelection (and according to the shared video which I was able to see from home last night, but not at work now, in VisualStudio SecretNewerVersion), doing
Shift+Alt+DownArrow Shift+Alt+DownArrow Shift+Alt+DownArrow Shift+Alt+RightArrow Shift+Alt+RightArrow
will still create a rectangle 4rows x 2columns, but in that setup,Right Arrow
will not take you out of column/multi-select but will move the tall multi-line cursor:
-
That is an interesting response.
Let me write the whole thing again.
I am stating that notepad++ is doing something stupid because
instead of providing a keyboard shortcut to spawn NORMAL multi-caret on the lines above/below, it only provide shortcut to spawn new carets in the special broken column mode which cannot move across letters smartly without the BetterMultiSelection plugin.I stated that it can be improved by just adding a keyboard shortcut to spawn NORMAL multiple carets like most of the code editors do. Once shortcut is available, instead of requiring user to install extra BetterMultiSelection to fix the Column Mode, user can just config the shortcut and start keyboard based multi-caret editing with smart caret navigation across letters.
The reason to have keyboard shortcut instead of mouse click?
Its way more convenient and precise when coding. Can hold down the keys and keep spawning carets on many lines. e.g. adding/removing prefix on a very large enum or array elements.I say that most code editor works like that. after that, you guys, instead of focusing on the idea itself, trying to verify whether I am making things up by testing multi-caret in VS but with an old version and claiming that VS is doing as bad as current notepad++. I kindly telling you guys that you are not using the current version of VS to have a fair comparison. I don’t know about your circle but in my circle when people are told they should not use the old version, it is common sense to update a software to the current version. Finally you start to complaint I am not telling you what version of visual studio I am using while you are the one who start to test multi-caret in visual studio by yourself. I don’t expect to test VS in the 1st place nor do I expect you to test with an old version. From my perspective, testing particularly in visual studio is no necessary. I just suggest to have np++ to rise the current standard (multi-caret in this case). Whether it is in VS or Atom or Sublime or XCode, developer should think critically whether a feature/improvement should be added, not to blindly follow a particular software. When you need to test a feature from another software, it is common practice to compare to the latest most polished version.
I waste my time to record a gif to demo the new VS multi-caret editing but because this stupid forum not allow normal registered user like me to upload GIF, I have no choice but to upload to external hosting like google drive. I posted a link for you convenience so that you don’t need to install latest version of VS. However you instead of simply click the link and view it, claimed nobody wants to and able to access my google drive. I honestly don’t know what to say.
I am very sad.
Good bye -
@earth-invader said in Is multi-caret editing bugged?:
I am stating that notepad++ is doing something stupid because
It is not stupid. It’s just different than you want. That happens with all sorts of software. You have made your point. We disagree. Please use the BetterMultiSelection which gives you exactly what you have asked for and move on, as I suggested half an hour ago. Stop pestering us fellow users.
but because this stupid forum not allow normal registered user like me to upload GIF,
Factually incorrect. You can paste/upload standard GIF. You just cannot paste in animated gifs – neither can I. To share my animated gif, I uploaded it to imgur, then used markdown syntax of
![](https://url/to/image.gif)
to get it to embed.I just suggest to have np++ to rise the current standard (multi-caret in this case)
And we explained to you that the developer’s philosophy is that if there’s a perfectly good, publically avaiable plugin which implements the feature already, there is no reason for him to waste his time re-implementing something that already works. BetterMultiSelection implements the feature you want. Use it, or switch to Sublime, or always use Visual Studio – it’s up to you.
-
@peterjones said in Is multi-caret editing bugged?:
BetterMultiSelection implements the feature you want. Use it, or switch to Sublime, or always use Visual Studio – it’s up to you.
Or, put in a Scintilla feature request for the desired functionality; it isn’t even Notepad++ (code) related!
Hopefully this is the END.
-
I just noticed an ISSUE that seemed very relevant to this thread.
-