Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

PHP else formatting #3895

Open rivets opened 3 years ago

rivets commented 3 years ago

Short Summary

When typing else statements I keep getting given elseif statements.

Steps to Reproduce

Type if ($x == $y) { abc(); } else

And hit return you get an elseif. I format my brackets on the next line so do not want an elseif! and I have to go back and delete the if. If I were to type just els and hit return then it would give me els but that is not how my brain or fingers work!

Expected results

if ($x == $y)
{
    abc();
}
else
{

Actual results

if ($x == $y)
{
    abc();
}
elseif
{

Platform Information

Komodo Edit or IDE? IDE Komodo Version? 12.01 Operating System (and version)? macOS 10.15.6

Additional Information

th3coop commented 3 years ago

I format my brackets on the next line so do not want an elseif!

Please top yelling :) We can read you loud and clear.

ratajs commented 3 years ago

This problem is much more general. When I write a selector in CSS, then curly bracket and hit Enter, it inserts the first property it has in the database (-moz- properties are now the first). The autocomplete triggered by Enter doesn’t work very well, it should be reduced or completely replaced by Tab.

Komodo IDE on Windows 10

th3coop commented 3 years ago

@ratajs that sounds like an old fixed issue. Can you confirm what version of Komodo you're running?

ratajs commented 3 years ago

@ratajs that sounds like an old fixed issue. Can you confirm what version of Komodo you're running?

Komodo IDE, version 12.0.1, build 91869, platform win32-x86. Built on Mon Feb 10 18:14:23 2020.

Screenshot 1

Screenshot 2

th3coop commented 3 years ago

OK thanks for confirming, @ratajs