Skip to main content
US Army Corps of EngineersInstitute for Water Resources, Risk Management Center

Installing and Navigating VS Code

Visual Studio Code (VS Code) is a lightweight, free code editor developed by Microsoft. It is the recommended IDE for RMC Python development due to its excellent Python support, integrated terminal, extension ecosystem, and Jupyter notebook integration.


Installing VS Code

VS Code is available for request through the USACE App Portal. It does not require approval, and installation should occur automatically.

  1. Open the USACE App Portal
  2. Search for Visual Studio Code and request installation
  3. If installation doesn't begin within 48 hours, contact the Enterprise Service Desk at (866) 562-2348
Known Issue

Several users have reported issues with VS Code installing correctly from the App Portal and have required assistance from CIO-G6. If installation fails or VS Code does not work correctly after installation, contact the Enterprise Service Desk for escalation.


When you first open VS Code, the interface is divided into several key areas:

VS Code interface with the Activity Bar, Sidebar, Editor area, and integrated Terminal Panel labeled

Activity Bar (Left Edge)

The vertical icon bar on the far left. Each icon opens a different view in the Sidebar:

IconViewPurpose
FilesExplorerBrowse and manage project files and folders
SearchSearchSearch across all files in the workspace
BranchSource ControlView Git changes, stage files, and commit
BugRun and DebugLaunch and debug scripts
BlocksExtensionsInstall and manage extensions

The panel that opens next to the Activity Bar. Its contents change based on which Activity Bar icon is selected. The Explorer view is the most commonly used — it shows your project's file tree.

Editor Area (Center)

The main area where you open and edit files. You can have multiple files open in tabs and split the editor into side-by-side panes.

Terminal Panel (Bottom)

The integrated terminal, which you will use extensively for running Python scripts, managing virtual environments, and executing Git commands. To open it:

  • Use the keyboard shortcut Ctrl+` (backtick)
  • Or select Terminal → New Terminal from the menu bar
Terminal Shell

The integrated terminal defaults to PowerShell on Windows. You can change the default shell by clicking the dropdown arrow next to the + button in the terminal panel and selecting Command Prompt, Git Bash, or another installed shell.


Essential Operations

Opening a Folder

VS Code works best when you open an entire project folder rather than individual files:

  • File → Open Folder... and select your project directory
  • From a terminal: navigate to your project folder and run code .
  • From GitHub Desktop: select your repository, then click Repository → Open in Visual Studio Code

Opening a folder gives you the full Explorer file tree, integrated terminal rooted in the project, and proper extension support.

Command Palette

The Command Palette is the fastest way to access any VS Code feature. Open it with:

Ctrl+Shift+P

Start typing to search for commands. For example:

  • Type Python: Select Interpreter to choose which Python installation to use
  • Type Terminal: Create New Terminal to open a new terminal
  • Type Preferences: Color Theme to change the editor theme
VS Code Command Palette showing search results for Python Select Interpreter

Keyboard Shortcuts

ShortcutAction
Ctrl+Shift+POpen Command Palette
Ctrl+`Toggle integrated terminal
Ctrl+PQuick file open (search by filename)
Ctrl+Shift+EOpen Explorer sidebar
Ctrl+SSave current file
Ctrl+BToggle sidebar visibility
Ctrl+Shift+FSearch across all files
Ctrl+/Toggle line comment

Extensions add functionality to VS Code. To install an extension, click the Extensions icon in the Activity Bar (or press Ctrl+Shift+X), search for the extension name, and click Install.

VS Code Extensions marketplace with the Python extension by Microsoft shown

Python Extension Pack

Installing the Python extension from Microsoft automatically installs a bundle of related extensions. You do not need to install each one individually — installing Python gives you all of the following:

ExtensionPublisherInstalled WithPurpose
PythonMicrosoftCore Python language support — IntelliSense, linting, code navigation, formatting, and run/debug configuration
PylanceMicrosoftPythonFast, feature-rich language server — type checking, auto-imports, enhanced autocompletion, and semantic highlighting
Python DebuggerMicrosoftPythonDedicated debugging engine for Python — breakpoints, step-through execution, variable inspection, and call stack navigation
Python EnvironmentsMicrosoftPythonEnvironment discovery and management — detects installed Python interpreters, virtual environments, and conda environments, and provides a unified UI for switching between them
tip

After installing the Python extension, check your Extensions sidebar (Ctrl+Shift+X) — you should see Pylance, Python Debugger, and Python Environments listed as installed. If any are missing, install them individually by name.

Jupyter Extension Pack

Installing the Jupyter extension from Microsoft also installs a bundle of companion extensions. Jupyter notebook support is covered in detail in Jupyter Notebooks in VS Code.

ExtensionPublisherInstalled WithPurpose
JupyterMicrosoftCore Jupyter notebook support — notebook editor, code cell execution, kernel management, variable explorer, and inline plots
Jupyter KeymapMicrosoftJupyterAdds Jupyter-standard keyboard shortcuts to VS Code notebooks — matching the key bindings that Jupyter users expect (e.g., A/B to insert cells, DD to delete)
Jupyter Notebook RenderersMicrosoftJupyterRenders rich output types in notebook cells — interactive plots (Plotly, Vega), HTML widgets, LaTeX, and other MIME types beyond plain text and static images

Selecting a Python Interpreter

After installing the Python extension, you need to tell VS Code which Python installation to use. This is especially important if you have multiple versions of Python installed or are working with virtual environments.

  1. Open the Command Palette with Ctrl+Shift+P
  2. Type Python: Select Interpreter and press Enter
  3. VS Code will display a list of detected Python installations
  4. Select the Python version you installed (or your virtual environment's interpreter — covered in Virtual Environments)

The selected interpreter appears in the bottom status bar of VS Code. You can click on it at any time to change the selection.

info

You will revisit this step after creating a virtual environment. When working on a project, you should always select the virtual environment's interpreter rather than the global Python installation.