training:software:vscode_tips
VSCode Tips
VSCode and the extensions and commands added by the WPILib installation and the team setup provide many features to speed up working on the software. Here are some that make things easier:
- Hovering your cursor over a symbol provides a popup hint that gives information about the class, field or method. In many cases that's all the information you need.
- Renaming Symbols: Right Click and select Rename Symbol or Left Click and hit F2. This will find and rename all occurrences of the symbol in the project.
- Find where a symbol is defined: Right Click and select Go to Definition or Left Click and hit F12. This takes you right to the spot the symbol is defined, even in imported packages.
- Find where a symbol is referenced: Right Click and select Find All References. This gives a list on the left of each file and each line in those files where a symbol is referenced.
- Temporarily comment out code: Select the lines you want to comment out and hit Ctrtl-/ to comment out each line individually, or Shift-Alt-A for a block comment.
training/software/vscode_tips.txt · Last modified: by Brian Utterback

Discussion