vscode-copilot-release icon indicating copy to clipboard operation
vscode-copilot-release copied to clipboard

Indentation issues

Open anmolsingla140 opened this issue 10 months ago • 2 comments

Type: Performance Issue

I am using the Claude Sonnet 4 model to generate code in C# and it is running into indentation issues with the code it generates. It generated a code which has indentation issues and then goes to iteratively fix the indentation which takes up more time. It iss only recently this is happening, Another issue is that the changes made in a file are not immediately affected. For example, it manages to fix the code in a file but the file still shows the error that is not existing. For eg. an error of assembly refeernce missing is shown even though that has been fixed. Only after closing the IDE and opening it again does it resolves the error. FYI: I am using VS Code Insiders

Extension version: 1.326.0 VS Code version: Code - Insiders 1.101.0-insider (1b4b2f807c36c2347167790756941d3058a3e8ae, 2025-05-30T05:03:59.165Z) OS version: Windows_NT x64 10.0.19045 Modes:

anmolsingla140 avatar May 30 '25 08:05 anmolsingla140

Lots of indentation issues and similiar behaviour with python too.

InfantLab avatar Jun 10 '25 09:06 InfantLab

GPT-5 also makes a lot of indentation issues. With python this leads to syntax error, and agent is wasting resources to fix them immediately. Sometimes a simple change causes 10-min iteration loops when it constantly correcting himself about a very simple problem that is a correct identation. Cursor don't have this problem

UncleGoogle avatar Oct 31 '25 10:10 UncleGoogle

The models have improved a lot recently, and we've made lots of changes. If you still see this issue we're happy to re-open. Please see https://github.com/microsoft/vscode/wiki/Copilot-Issues for how to provide an actionable Copilot issue.

dbaeumer avatar Dec 11 '25 15:12 dbaeumer