Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Hi, I'm using visual studio code to edit the Dawn theme.
When I try to format the code the schema section is not formatted.
What is the best way to format code in .liquid files?
Are you using this extension?
https://marketplace.visualstudio.com/items?itemName=sissel.shopify-liquid
Yes, the liquid code and the json schema are not formatted.
I use ctrl+shift+i
Try Ctrl+Shift+L, that should use the Liquid formatter provided by the extension. Or via the command palette enter format.
Ctrl+Shift+L Don't work.
I have generated the .liquidrc in my workspace
Then that .liquidrc file is likely not working as intended, I don't have that file and the formatting works correctly out of the box.
I don't really know ¯\_(ツ)_/¯
Maybe post an issue on the extension's GitHub repo.
Give this guy a medal! I always used ctrl+alt+f and thought the formatting was not working well and had no clue. CTRL +SHIFT + L is what I needed! Thank you!
User | RANK |
---|---|
5 | |
5 | |
4 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022