When you have a piece of code like this:
local goldPet = normalPet:Clone()
:SetGolden()
:SetAmount(amountGold)
And you press Enter on the “:SetAmount(amountGold)” line, it turns the code into this:
local goldPet = normalPet:Clone()
:SetGolden()
:SetAmount(amountGold)
This is very frustrating, and there is no simple solution. This is using the Auto Indent Rule ‘Absolute’. I have tried using ‘Relative’ but this creates further issues elsewhere.
Auto-indent should only effect the indent of the next line your cursor is being sent to - NOT the current line. This behavior should either be disabled, or it should have an option in the settings for it.
Expected behavior
Pressing enter on the bottom line of this code:
local goldPet = normalPet:Clone()
:SetGolden()
:SetAmount(amountGold)
Should result in no indent changes to the original code and the cursor should end up as shown:
local goldPet = normalPet:Clone()
:SetGolden()
:SetAmount(amountGold)
| <-- CURSOR