Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3962930
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:09:17+00:00 2026-05-20T03:09:17+00:00

I want to achieve Virtual Space functionality, similar to one in Visual Studio, in

  • 0

I want to achieve “Virtual Space” functionality, similar to one in Visual Studio, in AvalonEdit.

I.e. the caret could be positioned beyond the end of the text line, and if you press any key, there would be spaces automatically added to match.

I am very used to this feature, but neither Googling nor studying AvalonEdit’s code gave me any clues on how to enable it, if it is supported at all.

If it is not, suggestions how to extend caret handling mechanisms would be nice.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:09:18+00:00Added an answer on May 20, 2026 at 3:09 am

    Edit:
    Virtual space support has been added to AvalonEdit in version 4.2.0.8283.
    Set textEditor.Options.EnableVirtualSpace = true;.

    Below is my original answer.


    It’s not currently supported.

    If you want to try adding it, make sure you read the “coordinate systems” documentation (in the help file on CodeProject). You’ll want to extend the “visual column” so that positions after the line end are valid. And you’ll have to adjust the position<->column calculations (VisualLine.GetVisualColumn and friends). Use TextView.WideSpaceWidth to figure out the columns past the end of the line.

    The above should allow you to use the mouse to place the caret in virtual space. After that, you’ll need to change the caret movement (arrow keys, CaretNavigationCommandHandler) and text input logic (TextArea.PerformTextInput) to also support the virtual space.

    And if you’re successful with the above steps, don’t forget to contribute your changes back to AvalonEdit. 🙂
    While I’m not a fan of virtual space myself, we need something like it to make the RectangleSelection work properly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to achieve the following: ID | Counter ------------ 0 | 343 1
What I want to achieve is this. I want to give the user the
I'm trying to implement a DataGrid in ASP.NET, and want to achieve custom paging
How would I achieve the pseudo-code below in JavaScript? I want to include the
What I want to achieve is simple: I have a website, say my-site -
What I am trying to achieve is the following: I want to have numerous
To run untrusted code at home I use a VMWare virtual machine. I want
I want to achieve this in CSS - not CSS3 as I want it
I want to achieve the following: There is a list of persons (name, birthday,
I want to achieve the following: Current State of table (my_table) id totalX totalY

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.