# VS Code Extension The VS Code Extension extension provides a number of convenience tools that can be used with many of the different files used in add-on packages. The extension is supplied as part of the SDK Tools and can be found here: ```\Tools\VS Code Extension\```   ### Package Files Pressing {{< input "Alt" />}} + {{< input "Shift" />}} + {{< input "E" />}} will - if you are within an aircraft package - show you a list of all the *non binary* files within that package. This list is filtered to files sharing your current file's name by default: {{< image-center src="images/8_Tools/vs_code/vs_code_1_allfiles.png" alt="Example Of The All File Search Feature" >}} ### Model Behavior XML The following shortcuts are available in the extension related to dealing with [Model Behavior](../../content-configuration/models/modelbehaviors/model-behaviors/) XML files: - Pressing {{< input "Alt" />}} + {{< input "G" />}} on a *Template* / *ParametersFn* / *Macro* / *Parameter Name* will do the following depending on whether you are selecting the item itself, or the item definition: - **On the item**: VS Code will take you to the item definition. - **On the definition**: VS Code will display a list of where the tag is used, and selecting one will take you to it. {{< image-center src="images/8_Tools/vs_code/vs_code_2_definesearch.png" alt="Using ALT+G to Find Item Usage" >}}   - Pressing {{< input "Alt" />}} + {{< input "G" />}} on a *Include* / *IncludeBase* will move you to the included file.   - Pressing {{< input "Alt" />}} + {{< input "Shift" />}} + {{< input "G" />}} will list all available *Template* / *ParametersFn* / *Macro*. You can further filter this list by adding a search term, and then selecting any of the listed items will take you to its location. {{< image-center src="images/8_Tools/vs_code/vs_code_3_find.png" alt="Searching All Behavior Items" >}} ### GLTF Files If you select any of the glTF files in the package, you can then use {{< input "Alt" />}} + {{< input "Shift" />}} + {{< input "G" />}} to get a list of nodes and animations available in the file. This list can be further filtered using the text input, and selecting any of the items in the list will move you to the section in the glTF corresponding to the selection. {{< image-center src="images/8_Tools/vs_code/vs_code_4_gltfsearch.png" alt="Searching Through A GLTF File" >}} ### attached_objects.cfg If you have open an [attached\_objects.cfg](../../content-configuration/cfg-files/attached_objects.cfg/) file and then use {{< input "Alt" />}} + {{< input "G" />}} on an `attachment_root` or `attachment_file` then VS Code will take you to the appropriate file. ### CFG And FLT Files There are some quality of life features when using the extension and checking CFG or FLT files: - Using {{< input "Alt" />}} + {{< input "Shift" />}} + {{< input "G" />}} will show a list of all CFG / FLT sections, which you can filter, and then select to move directly to it. {{< image-center src="images/8_Tools/vs_code/vs_code_5_sections.png" alt="CFG File Sections In The Editor" >}}   - Duplicate entry validation will be performed on sections and parameters within the files, with VS Code highlighting any issues and - if you hover over the underlined issue - a box will be shown with the error. Note to that for CFG files, additional validation will be performed on **indices** and misnumbered indexed sections/parameters will be shown. {{< image-center src="images/8_Tools/vs_code/vs_code_6_error.png" alt="Example Of An Indexing Error Message" >}}   - Sections in the CFG and FLT files can be collapsed / expanded to condense down the information using the arrows beside each one. {{< image-center src="images/8_Tools/vs_code/vs_code_7_expand.png" alt="Collapsable Sections In CFG and FLT files" >}}   - There is also some syntax highlighting done to CFG files and FLT files to make reading them easier. It should be noted that this is tuned to the *dark* VS Code settings, but you can tune it to suit your own setup Settings/Token Color Customizations options.