Quickly re-indent your code!
(You will also need the
python-indent package to achieve this exact behavior with Python files.)
Change the length of that variable name with impunity! Update your soft indentation length! Fix your co-workers mess! Fix your mess!
Highlight the lines of code you want to re-indent, and activate the re-indent command either through the command palette (
ctrl-shift-p) or by using the keybinding
\nif the file's newline character is unknown),
editor:newlineafter each line is inserted to automatically set the indentation level for the next line.
This package relies on Atom's built-in auto-indentation which is usually derived from a language package. If the language package doesn't do a good job of indenting your code, then this package will not either. In particular, languages with white-space based syntax (e.g. Python and Make) might have trouble.
The editor will take the first line of your selection as the base indentation level. Consider the code below:
for x in y: print(x)
If you highlight only the second line (
print(x)) and reindent, then nothing will happen. You have to include the line
for x in y: in your selection.
I am by no means a master of the
apm tool, so this I'm putting down the process for publishing.
git checkout master
git add CHANGELOG.md; git commit -m "updating changelog"; git push
apm publish [major | minor | patch | build]Note that this will automatically update package.json with the new version number!
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.