How do you create Multi-Carets in a TextBox C#
Asked Answered
G

0

6

I find many professional text editors like Sublime Text and Synwrite that has a feature as a Multi-Caret editor. The text caret will actually insert to different lines inside the editor so you can actually edit multiple lines for the same type of code. So there's no need for copy paste anymore.

Here is a GIF image of Cuda Text editor with the Multi Caret feature.

So can anyone help to achieve this in C#?

Gallager answered 23/8, 2017 at 13:43 Comment(1)
You will have to use winapi here, see e.g. this answer. Another option is custom control, where you can draw with gdi+ whatever you want (blinking is .. kek).Dianetics

© 2022 - 2024 — McMap. All rights reserved.