Bug? Tab Indent Bug?

RichardN

Well-Known Member
Licensed User
Longtime 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.

B4X:
Select Value        'Before I paste PopulateList()
           
     Case MenuOption(0)
               
          Query = "SELECT * FROM Countries ORDER BY Country"
               
     Case MenuOption(1)

B4X:
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:

jimmyF

Active Member
Licensed User
Longtime 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
 

sorex

Expert
Licensed User
Longtime User
you can also disable the autoformatting on pasted content in the options. (Tools > IDE Options > [ ] Autoformat when pasting)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…