Define custom code style.
Code style in options is great however i'd like to have more flexibility here's what i am looking for.
Say i have PHP code
if ( !empty($variable) && $variable == 10 ) {
...
}
if ( !empty($variable) ) {
...
I want to style code so there is / isn't space between if condition brackets, but only for second expression so i define somewhere custom code style like this
if ( !empty(*) ) {
then after running reformat code i would get
if ( !empty($variable) && $variable == 10 ) {
...
}
if (!empty($variable)) {
...
So space removed only on line with the exact match to my custom style rule regardless of variable name inside !empty() as i used star wildcard.
请先登录再写评论。