VS Code Auto formatting brackets at the bottom line

Asked

Viewed 43 times

0

Hello! I enabled auto formatting, by default it saves the brackets of a class or function on the bottom line.

But I wanted him to save from all conditions too, I think it gets more beautiful and organized.

Currently:

if ($this->UsersDB->isPermission("servers_del") && !empty($serversInfos)) {
   $this->ServersDB->del("id", $id);
}

Desired:

if ($this->UsersDB->isPermission("servers_del") && !empty($serversInfos))
{
    $this->ServersDB->del("id", $id);
}

Someone could help out?

  • this is some formatting plugin or the Eslint you installed that is configured to apply the training when saving, have to remove this config in the plugin

  • is default auto save setting by formatting the codes, but would like to customize this part.

  • @novic, Vscode configs do not always follow the same Visualstudio scheme. This https://stackoverflow.com/a/48729755/1518921 probably solves your doubts. If anyone wishes to formulate an answer please feel free, I recommend testing first.

  • @Guilhermenascimento I saw wrong, I know they are totally different I will remove the signage, I thought it was visual studio the complete tool! my failure!

  • OK thank you so much!!! Helped a lot the link posted.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.