# Rename Symbols

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

## Variables

### Global Scope

Renaming variables that appear at the top level scope will rename them across the workspace.&#x20;

![](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.&#x20;

![](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)
