# Feature request: show outline in VsCode and enable finding all references

**URL:** https://forum.fuel.network/t/feature-request-show-outline-in-vscode-and-enable-finding-all-references/5586
**Category:** Sway
**Tags:** feedback
**Created:** [June 6, 2024, 5:26pm UTC](https://forum.fuel.network/t/feature-request-show-outline-in-vscode-and-enable-finding-all-references/5586 "2024-06-06T17:26:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Minh](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Minh](https://forum.fuel.network/u/Minh)
#### Post date: [June 6, 2024, 5:26pm UTC](https://forum.fuel.network/t/feature-request-show-outline-in-vscode-and-enable-finding-all-references/5586/1 "2024-06-06T17:26:46Z")

</div>

Currently the sway extension is not able to show the outline of a file (functions and definitions):  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/5/5b28459a63e7bec37a7c54ce1206a02cc526be68.png)

Also the extension is not capable of finding all references of a variable, for example by rightclicking with the cursor on a function in solidity you find the following option:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/d/da93630243a5e93a75f69d456dc2c8f5878a6760.png)

---

<div class="post-metadata">

### Author: ![sophie-fuel](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@sophie-fuel](https://forum.fuel.network/u/sophie-fuel)
#### Post date: [June 6, 2024, 10:47pm UTC](https://forum.fuel.network/t/feature-request-show-outline-in-vscode-and-enable-finding-all-references/5586/2 "2024-06-06T22:47:31Z")

</div>

Hi @Minh, thanks for the post. What version of `forc-lsp` do you have installed? And could you link to your sway project?

The outline of the file feature is working for me.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/6/6c8475f5b81e9d7faee1c16c686ca34fa16401c5.png)

The find all reference feature is on our roadmap. Feel free to follow along here: [Add Find All References feature · Issue #5961 · FuelLabs/sway · GitHub](https://github.com/FuelLabs/sway/issues/5961)

---

<div class="post-metadata">

### Author: ![Minh](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Minh](https://forum.fuel.network/u/Minh)
#### Post date: [June 6, 2024, 11:18pm UTC](https://forum.fuel.network/t/feature-request-show-outline-in-vscode-and-enable-finding-all-references/5586/3 "2024-06-06T23:18:45Z")

</div>

Hey, appreciate your reply, turns out its working for me too now, not sure what went wrong earlier.

Then I would like to change the request to support folding of the outline, e.g. so its easier to see all functions of an impl block at a glance. Here is an example of what it looks like for a rust file:

![image](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/5/5a35adf9f2630d6ca0c5608d451898aa7f3da77f.png)

---

<div class="post-metadata">

### Author: ![sophie-fuel](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@sophie-fuel](https://forum.fuel.network/u/sophie-fuel)
#### Post date: [June 7, 2024, 5:26pm UTC](https://forum.fuel.network/t/feature-request-show-outline-in-vscode-and-enable-finding-all-references/5586/4 "2024-06-07T17:26:31Z")

</div>

That makes sense. I’ve opened an issue here: [Nested outline of file for LSP · Issue #6100 · FuelLabs/sway · GitHub](https://github.com/FuelLabs/sway/issues/6100)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/fuel/original/2X/5/57d5a345cc15a64b636e0d56e042857f8a0e80b1.png) [@system](https://forum.fuel.network/u/system)
#### Post date: [June 28, 2024, 1:26pm UTC](https://forum.fuel.network/t/feature-request-show-outline-in-vscode-and-enable-finding-all-references/5586/5 "2024-06-28T13:26:51Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
