Bug? Tab Indent Bug?

Discussion in 'Bugs & wishlist' started by RichardN, Jan 14, 2019.

  1. RichardN

    RichardN Active Member Licensed User

    It is essential to indent code correctly for readability...

    Every time I paste to the correct position below an indented code line it ends up one tab stop further left than the correctly indented line above.

    Code:
    Select Value        'Before I paste PopulateList()
               
         
    Case MenuOption(0)
                   
              Query = 
    "SELECT * FROM Countries ORDER BY Country"
                   
         
    Case MenuOption(1)
    Code:
    Select Value        'After I paste PopulateList()
               
          
    Case MenuOption(0)
                   
               Query = 
    "SELECT * FROM Countries ORDER BY Country"
          PopulateList(Query,
    "Country","CapitalCity")     '<<Too far left
                   
          
    Case MenuOption(1)
    Can this be fixed with an IDE setting or is something else wrong?
     
    Last edited: Jan 14, 2019
  2. jimmyF

    jimmyF Active Member Licensed User

    I have the same issue and I found an easy answer.
    After pasting code just hit Alt-F and it will be properly formatted.

    hth
     
    DonManfred likes this.
  3. sorex

    sorex Expert Licensed User

    you can also disable the autoformatting on pasted content in the options. (Tools > IDE Options > [ ] Autoformat when pasting)
     
    jimmyF likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice