Code Style

Is there any way when i format my code the if, switch, foreach looks like

if( )
{
    # code
}

foreach( )
{
    #code
}

switch( )
{
    #code
}



at this moment when i format it looks like bellow but i don't like my code this way

if( ) {
    # code
}

foreach( ) {
    #code
}

switch( ){
    #code
}



or atleast add a empty line so code does not look all together

if( ) {

    # code
}

foreach( ) {

    #code
}

switch( ){

    #code
}

0

Hi there,

Have you tried this?

Settings (Preferences on Mac) | Code Style | PHP | Wrapping and Braces | Braces placement | Other --> Next Line

screen01.png

0
Avatar
Permanently deleted user

Thank you that worked :)

0
Avatar
Permanently deleted user

Before you go to the dentist, you should first make sure that you have enough money with you. Try and get to the dentist at least one time a year, though it is suggested that you go every six months. This will help you keep away from any serious difficulties with cavities. You might need installment payday cash advances to help pay for a serious surgery, such as a root canal. It is easier to just get regular checkups to start with.

0

请先登录再写评论。