Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2014
    Posts
    5

    Lightbulb Feature Request -- Intelligent Leading Whitespace

    In some code that I work on, there is often a mix of leading whitespace within the same file. Some sections use spaces, while others use tabs. Some popular text editors insert whitespace matching the previous line, whenever a new line is added. Beyond Compare indents to the correct level, but only using the whitespace method configured for the file format.

    So, for instance, if I have a section that looks like:
    <tab><tab>asdf
    ...and I hit <Enter> after the "asdf", these editors will insert two tabs.

    Where I have leading spaces, they will insert spaces, instead.

    And if I have <tab><space><space>, they will insert the same before the new line.

    Can you consider a new whitespace option that would automatically match context?

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,384

    Default

    Thanks for the feedback. I'll add this style of auto-indenting to our Customer Wishlist.
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •