R RichardN Well-Known Member Licensed User Longtime User Jan 14, 2019 #1 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
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?
jimmyF Active Member Licensed User Longtime User Jan 14, 2019 #2 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
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
S sorex Expert Licensed User Longtime User Jan 15, 2019 #3 you can also disable the autoformatting on pasted content in the options. (Tools > IDE Options > [ ] Autoformat when pasting)
you can also disable the autoformatting on pasted content in the options. (Tools > IDE Options > [ ] Autoformat when pasting)