Skip to content

Commit 4f5c06a

Browse files
authored
Disable SMART_TABS
It indents things with spaces... https://www.jetbrains.com/help/idea/settings-code-style-php.html If this checkbox is selected, the part of indentation defined by the nesting of code blocks, is made of the tabs and (if necessary) spaces, while the part of indentation defined by the alignment is made only of spaces. If this checkbox is cleared, only tabs are used. This means that a group of spaces that fits the specified tab size is automatically replaced with a tab, which may result in breaking fine alignment.
1 parent 9cf9e57 commit 4f5c06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/mediawiki/MediaWikiPhpPredefinedCodeStyle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void apply(CodeStyleSettings settings) {
5555

5656
CodeStyleSettings.IndentOptions indentOptions = settings.getIndentOptions(PhpFileType.INSTANCE);
5757
indentOptions.USE_TAB_CHARACTER = true;
58-
indentOptions.SMART_TABS = true;
58+
indentOptions.SMART_TABS = false;
5959
indentOptions.TAB_SIZE = 4;
6060
indentOptions.INDENT_SIZE = 4;
6161
indentOptions.CONTINUATION_INDENT_SIZE = 4;

0 commit comments

Comments
 (0)