code not editable in vscode mac code example
Example: running a c++ program in visual studio code cannot edit in read only editor
File > Prefrences >Setting
type : run code
scroll until you get code-runner and check on the "Whether to run code in integrated terminal"
restart vscode