> For the complete documentation index, see [llms.txt](https://docs.poshtools.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.poshtools.com/open-source-tools/visual-studio-code/rename-symbols.md).

# Rename Symbols

You can press F2 on variables within Visual Studio Code to rename them across the workspace or function you are working in.

## Variables

### Global Scope

Renaming variables that appear at the top level scope will rename them across the workspace.

![](https://3667946160-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNFE66tpE_51uobNA70%2F-Ma-Yg8HhLoWVK3Syb9g%2F-Ma-Z0JEx1YO27lBZTE5%2Fglobal-vars.gif?alt=media\&token=70dab499-4b66-4354-b97f-a6f18d3eb2a9)

### Function Scope

Function scoped variables will only be renamed within the function you are working with.

![](https://3667946160-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNFE66tpE_51uobNA70%2F-Ma-Yg8HhLoWVK3Syb9g%2F-Ma-Z784fvzHEU1gEBS8%2Fvars-local.gif?alt=media\&token=970fc0a0-68cd-4632-bba0-5ee0b269fc0e)
