Maybe I would need to roll my own formatter extension... Looking at the docs makes my head explode.
Sep 21, 2020
2
Level 14
How to format the object operator in VSCode?
I have tried Prettier but it is too "opinionated" for my taste. I am looking for something that could format the object operators to be at the same column. (VSCode has Format on Save)
For example if I have code like this:
// PHP
$post = $post->whereName($name)
->whereCount(5)
->get();
// JS
let time = moment.now()
.format('Y-m-d')
.toString()
then I would like to have my editor automatically format it to this
// PHP
$post = $post->whereName($name)
->whereCount(5)
->get();
// JS
let time = moment.now()
.format('Y-m-d')
.toString()
Please or to participate in this conversation.