Question: Here I'm trying to add number of array separately, but I'm not able to achieve the expected output. If I want to add total I would do `flatMap` and add them togeather. But I want add them separately for each array.

Below is the snippet for what I have tried

```js
const data = [{
    "itemDetails": [{
      "sizeOfBag": 1,
      "numberOfBags": 1,
      "quantityInBag": 1.0
    }]
  },
  {

    "itemDetails": [{
        "sizeOfBag": 1,
        "numberOfBags": 1,
        "quantityInBag": 1.0
      },
      {
        "sizeOfBag": 10,
        "numberOfBags": 1,
        "quantityInBag": 1.0
      }
    ],

  }
]
const newData = data.map(f => f.itemDetails);
console.log(newData);

for (let i = 0; i <= newData.length; i++) {
  const addData = newData.reduce((acc, newData) => acc + newData[i].sizeOfBag, 0);
}
console.log(addData);
```

Expected Output: `[1,11]`

Answer: 
Try an extension called [File Group](https://marketplace.visualstudio.com/items?itemName=rioj7.FileGroup).  

My searching reveled that a lot of people are looking for this option but vsCode does not seem to have any good way to do it. This extension lets you list out the files with full path and associate them to a key shortcut.

Three files below will load by hitting `ctrl-alt-1` if you add this to `youProject.code-workspace`:

```
"1": {
    "files": [
        "C:\\temp\\file1.txt",
        "C:\\svn\\foo.txt",
        "C:\inetpub\wwwroot\iisstart.htm"
        ]
    }

```

(It is a pain to set up if you are new to vsCode, hopefully it gets developed further.)
It seems that there is an extension that does the job: [Editor Group Minimizer](https://marketplace.visualstudio.com/items?itemName=suhay.vscode-editor-group-minimizer&ssr=false)