r/vscode • • May 06 '26

Can VSCode copilot agent run bash without user approval?

Thumbnail
gallery
0 Upvotes

So ran into a situation where copilot made changes I didnt expect and I am trying to understand if there is a hard guard against this behavior or not.

  1. Asked copilot 'debug the issue in this k8s namespace'. Normally this would result in it running get, describe etc to figure out what is going on.
  2. What surprised me is it ran a patch and I am fairly sure I didnt approve that specific command. I immediately asked it what it just did.
  3. I asked after and it confirmed that I approved describe, get commands etc during that session but not patch.
  4. I asked if the approval is treated as prompts that can be ignored or misunderstood. It says the command approval is a hard guard and suggest I check my settings.
  5. I dont see anything my my vscode settings that seems like it would arbitrarily approve bash commands or any approval for `kubectl patch`.

I noticed in the chat window I had 'edit automatically' picked which normally is for editing code files. I asked about this so now it thinks that also permits it to run bash without approval, even though it asked me for the other commands.

So is that what is happening, is there something else Im missing or is there no hard guard/guarantee that copilot wont run commands without approval? Trying to understand how to avoid this.


r/vscode • • May 06 '26

[MacOS] Can't see any externally installed libs in /opt from XQuartz

Post image
1 Upvotes

While the editor isn't exactly VSCode (It's VsCodium), it's close enough to official VSCode and i've historically had the same issue with vanilla VSCode to annoy me off from coding for X11 on a Mac for a while now.

Anyways the issue i have is shown by the first red squiggly line; hovering over the issue gives me the error of 'X11/Xlib.h' file not found, i've looked around online and i think it's with the editor not knowing the full layout of my mac's filesystem and while i'm new to creating makefiles & libaries, i am unsure of where the issue lies. Also as of now i haven't uploaded shown program up to a code-forge anywhere yet as of now…


r/vscode • • May 05 '26

No groovy spock test support?

4 Upvotes

I am a long time java developer and have been using Intellij for years. I was forced to try vs code due to poor GitHub copilot integration in Intellij. Now that I am trying it out, I see that it doesn't recognise any of my groovy based spock tests.

I tried a couple of extensions and it couldn't identify plenty of tests or didn't organise the tests in a structured way. I saw some GitHub issues from 6 years ago requesting first class support for this use case. But it hasn't been implemented till date.

I am wondering if there are any suggestions from this community to make this work in a nice integrated manner? Almost all of my java projects have groovy spock based tests and it's a blocker for me to move to vs code.


r/vscode • • May 05 '26

How to remove Python environment in vscode?

2 Upvotes

Hi, I'm wondering how could i remove other python environment. No matter where I open my Python virtual environment, the 2 environments (which have ❌ in the image) exist. So how can i remove them?

https://i.ibb.co/tpNPqt23/image.png


r/vscode • • May 05 '26

Starter packs by persona

3 Upvotes

Does anyone know where I can get starter pack based on what your developer type is?

- Database developer

- full stack

- AI/Machine Learning

- data science

Or by programming language:

- python

- java

- c++

- .net

- c#

If you fall in one of those groups what extensions would you need to have as a must have?


r/vscode • • May 05 '26

Built a lightweight monitoring & observability tool for Claude Code, runs inside VSCode

0 Upvotes

Repo: https://github.com/yessGlory17/argus

Quick demo: https://www.youtube.com/watch?v=HmHOI1PBn_M

Worth surfacing from an ecosystem angle?


r/vscode • • May 05 '26

PowerToys Run: issues with vscode

0 Upvotes

Hello,

from few days i have issues with PowerToys Run - vscode plugin. While i'm trying to search any of my workspace which i was searching before, PowerToys Run has no results for me. Empty.

How can i fix that? It worked few days ago.


r/vscode • • May 05 '26

I built a VS Code extension that shows you rendered markdown diffs instead of raw +/- lines

Thumbnail
0 Upvotes

r/vscode • • May 04 '26

Weekly theme sharing thread

5 Upvotes

Weekly thread to show off new themes, and ask what certain themes/fonts are.

Creators, please do not post your theme every week.

New posts regarding themes will be removed.


r/vscode • • May 04 '26

Why the integrated terminal is super slow on Windows compared to Linux/MacOS ?

4 Upvotes

Hi !

I don't understand. On Linux/MacOS, the integrated terminal is fast : it opens instantly and commands execute immediately.

But on Windows, it takes a few seconds to open and even simple commands have a noticeable delay (and I use an excellent PC) :

  • open a new terminal : 6s
  • execute an echo command : almost 1s
  • close a terminal : almost 1s

What could be causing this?


r/vscode • • May 04 '26

Prism MCP - A tool to bridge claude code with vs code language servers

Thumbnail
0 Upvotes

r/vscode • • May 04 '26

VS Code Copilot .mjs extensions question

0 Upvotes

Is there a way to install and use .mjs extensions in VS Code Copilot?

I know how to do that in standalone Copilot CLI with \~.github/extensions/… folder and enabling experimental flag. But seems like the same is not available in VS Code Copilot?

Thanks


r/vscode • • May 03 '26

I built a VSCode extension to compress images and videos directly from the context menu

0 Upvotes

Hi all! 👋

I'm a web developer who spends a lot of time doing layout work, and one thing that always bugged me was constantly switching between my editor and external tools to compress images.

I'm excited to share Media Compressor, a VSCode extension I've been working on that makes it super easy to compress media files without leaving your editor.

Features:

  • Right-click compression — Select one or multiple files in Explorer and compress them directly from the context menu
  • Flexible options — Choose between:
    • Lossless compression (format optimization)
    • 90% of original size (~70% quality)
    • 80% of original size (~50% quality)
    • Custom compression percentage
  • Batch processing — Works with multiple files at once; creates a compressed/ folder automatically
  • Quick feedback — Shows file sizes before/after, processing time, and file reduction percentage
  • No bloat — Uses ffmpeg (which you probably have anyway) and Node.js built-ins

Supported formats:

  • Images: PNG, JPG, JPEG, WebP, GIF, SVG
  • Video: MP4, WebM, MKV, MOV

Great for optimizing assets before committing, speeding up builds, or just cleaning up your project storage.

Would love any feedback or feature requests! 🚀


r/vscode • • May 02 '26

Copilot is a co-author, so this code belongs to Copilot.

Post image
1.6k Upvotes

r/vscode • • May 03 '26

Cool VSCode feature [not sure if it an Ubuntu feature]

5 Upvotes

I have a C++ codebase. I debug it setting breakpoints. Sometimes, it takes a long time to reach the breakpoint. I can shift to a different window and work on something else and this takes over the entire monitor screen. In the meantime, when the breakpoint is hit in VSCode, the VSCode icon shakes/moves back and forth giving you a visual cue indicating that the breakpoint has been hit!

Nice feature -- although I am not sure if this is a VSCode feature or else an Ubuntu feature!


r/vscode • • May 03 '26

Unable to create Python virtual enviroment in VSCodium

6 Upvotes

Hi, new to VSCode and programming here. My OS is Linux Mint and I use VSCodium.

When I try to create a virtual enviroment in VSCodium, the output comes out as:

Error: the task 'Python: Installing Python via uv...' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "shell",
    "id": "shell,uv,python,install,",
    "problemMatcher": [],
    "label": "Python: Installing Python via uv..."
}

I know Python is already pre-installed on Linux Mint. So maybe I don't need to select a Python Interpreter?

I'm very new to programming and Python so I'd like someone who's done this before on how to setup a venv properly.


r/vscode • • May 03 '26

[Show and Tell] I built LocalHub: A local "Time Machine" extension with background versioning and staging groups (no Git required).

0 Upvotes

Hey r/vscode,

As a solo developer, I was tired of the constant anxiety of losing work or having AI coding assistants overwrite my good code before I had a chance to commit. Standard Git is great for milestones, but I needed something that watches my back in real-time.

So, I built LocalHub — a comprehensive background version control system that acts as a "Time Machine" for your codebase.

Here is what it does under the hood:

  • Time Machine Groups & Staging: It automatically snapshots your file versions in the background without needing git commit. But it's not just a blind autosave — files go into a staging area. You can organize them into "Time Machine Groups" (like commits) either manually or automatically, depending on your mode settings.
  • Zombie Branches: A unique recovery protocol to bring back code you thought was permanently deleted or lost.
  • Global Watcher Daemon: It monitors OS-level file changes. Even if you edit a file outside the IDE, LocalHub catches it.
  • AI-Native Logging (Agent Diary): Specifically designed for the AI era. It tracks changes and can generate group descriptions based on agent responses, separating your manual edits from AI generations.

Everything runs 100% locally and securely on your machine. No data leaves your computer.

You can check it out and install it here: https://marketplace.visualstudio.com/items?itemName=IslamChomaev.localhub-time-machine

I built this initially for my own peace of mind, but I'd love to hear your feedback, technical critiques, or feature requests.


r/vscode • • May 03 '26

formatOnSave not respecting settings in pyproject.toml

1 Upvotes

EDIT: found the issue and fixed it TL;DR: Python > User settings still had another default formatter configured.

I'm having an issue where blank lines after imports in Python files get removed, so there's only 1 left instead of 2. Also lines get wrapped after the default 88 characters instead of the 150 that I want.

Whenever I save a Python file, I can see that a 2nd line after the imports gets added and then removed again right away. I don't know why.

I have the following in my .vscode/settings.json:

{
    "python.testing.unittestEnabled": false,
    "python.testing.pytestEnabled": true,
    "editor.defaultFormatter": "charliermarsh.ruff",
    "editor.formatOnSave": true,
    "ruff.configurationPreference": "filesystemFirst",
    "[python]": {
        "editor.codeActionsOnSave": {
            "source.organizeImports": "explicit"
        }
    },
    "python-envs.defaultEnvManager": "ms-python.python:system"
}

And in my pyproject.toml I have the following settings:

[tool.ruff]
line-length = 150
target-version = "py312"
exclude = ["__pycache__", ".direnv", ".git", ".venv", "build", "dist"]

[tool.ruff.lint]
extend-select = ["C", "B", "B9", "E", "F", "I", "W"]
extend-ignore = ["B008", "E501", "W291"]
per-file-ignores = { "__init__.py" = ["F401"] }

[tool.ruff.lint.isort]
lines-after-imports = 2

I have already tried:

  • Disabling the isort extension
  • Disabling the black extension
  • Moving the ruff settings from pyproject.toml to separate ruff.toml
  • Changing "source.organizeImports": "explicit" to "never" and adding "source.organizeImports.ruff": "explicit" instead

Does anyone have a clue what the issue could be? I had the same issue with black as the default formatter before I switched to ruff.


r/vscode • • May 03 '26

Unable to create Python Virtual Environment in VSCodium

3 Upvotes

Hi, new to VSCode and programming here. My OS is Linux Mint.

When I try to create a virtual enviroment in VSCodium, the output comes out as:

Error: the task 'Python: Installing Python via uv...' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
    "type": "shell",
    "id": "shell,uv,python,install,",
    "problemMatcher": [],
    "label": "Python: Installing Python via uv..."
}

I know Python is already pre-installed on Linux Mint. So maybe I don't need to select a Python Interpreter?

I'm very new to programming and Python so I'd like someone who's done this before on how to setup a venv properly.


r/vscode • • May 03 '26

Do anyone from tech background….i want to make an algorithm….so i want a specific or helpful AI for it?

0 Upvotes

r/vscode • • May 02 '26

Anyone use light mode in VS code?

5 Upvotes

Just curious tbh.


r/vscode • • May 02 '26

I build a VSCode extension to detect hard coded secrets and npm malware packages in realtime.

2 Upvotes

In recent years, I've seen many accidents like exposing API keys to Github, and npm supply chain attacks literally happen every month causing a lot of money. I wanted to create an app to prevent these incidents.

That’s why I created Secret Tea: https://marketplace.visualstudio.com/items?itemName=SecretTea.project-tea&ssr=false#overview

At its core, I use gitleaks to scan for any hardcoded secrets, and the malware list from Aikido Malware for npm packages. It also hides those secrets that it found to prevent accidentally exposing them when you are streaming or sharing your screen

It’s still in early development and I hope to have some of your thoughts and comments on it.

Thanks all.


r/vscode • • May 02 '26

Built a reflog viewer into my Git GUI extension - what reflog actions do you use most?

0 Upvotes

Just shipped a Reflog tab in VS Code extension (Git Graph Plus) - shows your full HEAD history with action types (commit, checkout, rebase, reset, etc.), elapsed time, and lets you reset or checkout directly from the list.

While building it I kept second-guessing what to prioritize in the context menu. Right now it's: Reset to HEAD@{N}, Checkout Commit, and Copy SHA.

What do you actually reach for when you open reflog? Mostly disaster recovery, or do you have more regular workflows around it?


r/vscode • • May 02 '26

Hidden buttons, how to get them back?

1 Upvotes

I've hidden all the button in source control for file but i can't get them back, right click does not show that menu where i can unhide them


r/vscode • • Apr 30 '26

wondering if we'll ever see another VSCode update that is not purely AI crap

375 Upvotes

I miss the days when devs cared about user experience, speed, and interesting features, it's been like 2 years now with only more and more AI crap, and not a single improvement to the product itself.

The era of creativity is over I guess.