# Collapse all functions in Outline section of VS Code

**URL:** <https://discourse.julialang.org/t/collapse-all-functions-in-outline-section-of-vs-code/107765>\
**Category:** VS Code\
**Created:** [December 18, 2023, 10:22am UTC](https://discourse.julialang.org/t/collapse-all-functions-in-outline-section-of-vs-code/107765 "2023-12-18T10:22:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alseidon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alseidon/32/207775_2.png) [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Post date:** [December 18, 2023, 10:22am UTC](https://discourse.julialang.org/t/collapse-all-functions-in-outline-section-of-vs-code/107765/1 "2023-12-18T10:22:14Z")

</div>

Is it possible to collapse all functions in the Outline section, like you would do with the folders in the Explorer?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/c/cce8b1d4ec91ef8d4edb0a6516b90ff90157fdb3.png)

Currently, every function has underneath it its parameters and local variables. I can collapse each function manually, but I have too many to do this, and I have to do it everytime I open VS Code.

---

<div class="post-metadata">

**Author:** ![xiaoxi](https://avatars.discourse-cdn.com/v4/letter/x/a9adbd/32.png) [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Post date:** [December 18, 2023, 12:13pm UTC](https://discourse.julialang.org/t/collapse-all-functions-in-outline-section-of-vs-code/107765/2 "2023-12-18T12:13:03Z")

</div>

You can set the outline to collapse by default by adding `"outline.collapseItems": "alwaysCollapse"` to your settings.json file [Ctrl + P and search Open User Settings] or by choosing `alwaysCollapse` in the `Outline:Collapse Items` dropdown in the settings interface [Ctrl + ,].

You can collapse the outline by clicking on the icon next to the three points or by clicking on an outline element and pressing Ctrl + left key.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/c/ac0a28763cf03b0aaac2aea75e5b64285aaaa2ad.png)

---

<div class="post-metadata">

**Author:** ![Alseidon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alseidon/32/207775_2.png) [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Post date:** [December 18, 2023, 12:21pm UTC](https://discourse.julialang.org/t/collapse-all-functions-in-outline-section-of-vs-code/107765/3 "2023-12-18T12:21:33Z")

</div>

Thank you!
