Visual Studio Code

Visual Studio Codecode- Code editing. Redefined.
- Developer:Microsoft
- License:MIT (proprietary branding)
- Website:
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle.
Features
Developed by Microsoft, VSCode includes many of the features associated with its big brother, Visual Studio.
These include:
- IntelliSense code completion
- Built-in debugger with breakpoints, call stacks, and interactive console
- Git and other SCM integration
VSCode is intentionally lighter weight in both design and goals, though many more complex workflows are provided by their extensive collection of extensions.
Install
openSUSE provides free-as-in-freedom binaries of Code in a development repository. It does not include Microsoft branding and ships a configuration enabling the Open VSX extension store by default. You can install it from the command line:
Leap:
zypper ar -cf https://download.opensuse.org/repositories/devel:/tools:/ide:/vscode/16.0/ devel_tools_ide_vscode zypper in code
Tumbleweed:
zypper ar -cf https://download.opensuse.org/repositories/devel:/tools:/ide:/vscode/openSUSE_Tumbleweed devel_tools_ide_vscode zypper in code
Alternatives
VSCodium is a community supported FOSS distribution of Code, also set up for using Open VSX by default. They provide a Flatpak suitable for installation on immutable systems.
The proprietary Microsoft-branded build uses Microsoft's extension marketplace, includes additional customizations detailed on the Code wiki and, since version 1.74, no longer supports certain UI-modifying extensions.
Extension for the Open Build Service
OBS Connector is not available in VSCode marketplace anymore
SUSE has kicked off the development of the SUSE.open-build-service-connector Open Build Service Connector, an extension that brings the Open Build Service into Visual Studio Code.
It provides users with the ability to bookmark and browse projects and packages on OBS, check them out locally, branch them and submit changes back. Furthermore, OBS' version control is integrated into the source control of Visual Studio Code.
Check out the SUSE.open-build-service-connector store page or the Github page as well for further details.
Enabling GitHub Copilot Agent Sandbox Mode
Visual Studio Code's GitHub Copilot Agent supports a local sandbox mode that isolates terminal commands executed by the agent using Linux namespaces, filesystem sandboxing, and user-mode networking.
Prerequisites
Install the required user-space sandboxing and networking utilities via Zypper:
sudo zypper install bubblewrap slirp4netns iptables util-linux
- bubblewrap (
bwrap): Provides unprivileged filesystem mount isolation. - slirp4netns: Provides user-mode networking for rootless network namespaces.
- iptables: Provides
iptables,ip6tables,iptables-restore, andip6tables-restorefor network filtering inside the sandbox namespace. (openSUSE defaults tofirewalld/nftables, so this package is usually not pre-installed.) - util-linux: Provides
unshareandnsenter(pre-installed by default on openSUSE Tumbleweed and Leap).
Environment Configuration
On openSUSE, iptables binaries are installed under /usr/sbin, which may not be included in a non-root user's default PATH when launching GUI applications.
Verify that all required binaries are discoverable:
which bwrap slirp4netns unshare nsenter iptables ip6tables iptables-restore ip6tables-restore
If any iptables commands are missing from PATH, append /usr/sbin to your shell profile (e.g., ~/.bashrc or ~/.zshrc):
export PATH="$PATH:/usr/sbin"
Log out and back in (or restart all Visual Studio Code processes) so the updated PATH takes effect.
Activation
- Open Visual Studio Code Settings (
Ctrl + ,). - Search for
chat.agent.sandboxand enable it. - Start a Copilot Agent session and run a test shell command to verify that sandboxing initializes without dependency errors.
Help and assistance
The official documentation and the stackoverflow subpage are the best places for troubleshooting.
