Slickedit 23.0.0.5, macOS 10.12.6, C#
Below is an indentation issue I've been having after installing the beta (upgrading from 2017). Using tabs indents, but, after an if block, code will be indented with 3 spaces, not tabs or 12 spaces. Hopefully this isn't just a configuration problem on my side, but it happened directly after upgrading from 2017 without changing any settings.
adaptive-format-stats seems to be 100% that it should be indented with tabs.
Hitting tab at the beginning of a broken line will not fix the indent, like it normally does if you hit tab at the start of a badly indented line.
Running Beautify (a selection or the whole file) will fix it for those lines, but adding a new line directly after a block will go back to 3 spaces.
Fixing a line by hand or with beautify will allow lines after that to correctly indent with tabs, but it will go bad again after the next if block.
Brace style does not seem to matter.
Here is an example. It was created by just typing into a blank buffer, in order.
namespace Namespace {
public class Error {
public void TestTest() {
int x = this.WorksFine();
int y = this.AlsoWorks();
if ( x == y ) {
this.Works();
}
this.IsBroken();
this.StillBroken();
if ( x == y ) {
this.WorksAgain();
x = 7;
if ( y != x ) {
// I really don't get this one: prefixes the 3 spaces with tabs to get the correct indent?!
this.IsBrokenInADifferentWay();
}
}
}
}
}
Let me know if you need any more detail / test cases / configuration options. Thanks!