I have been using a custom shortcut to indent in Sublime Text referred in this post Indent multiple lines in Sublime Text
But it doesn't work if there are an odd number of spaces. Like my tab size is set to 2 spaces, and when there are 3 spaces at the beginning of any line it doesn't indent the remaining code.
for example:
<?php
function test_indent() {
if (condition) {
echo "here";
}
else {
echo "else";
}
}
And when I indent with the custom shortcut specified in the above post, which is:
{ "keys": ["ctrl+shift+f"], "command": "reindent", "args": {"single_line": false} }
for me, it results like:
function test_indent() {
if (condition) {
echo "here";
}
else {
echo "else";
}
}
What do I need to do to make it indent properly?