You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking around the docs but could not find a way to do this. Say I have a nested javascript object, such as this:
var collection = {
title: "Star Wars",
author: "George Lucas & others",
episodes: {
"IV": "A New Hope",
"V": "The Empire Strikes Back",
"VI": "Revenge of the Sith"
}
}
What is the fastest way to align the colons taking into account the nesting, so it becomes like this?
var collection = {
title : "Star Wars",
author : "George Lucas & others",
episodes: {
"IV": "A New Hope",
"V" : "The Empire Strikes Back",
"VI": "Revenge of the Sith"
}
}
The only way I've found so far is manually selecting every sub-object, but that's a bit painful with lots of nesting / lots of individual objects.
The text was updated successfully, but these errors were encountered:
Hi,
I've been looking around the docs but could not find a way to do this. Say I have a nested javascript object, such as this:
What is the fastest way to align the colons taking into account the nesting, so it becomes like this?
The only way I've found so far is manually selecting every sub-object, but that's a bit painful with lots of nesting / lots of individual objects.
The text was updated successfully, but these errors were encountered: