0

Visual Studio Code 1.46.1

Operating system: MacOS 10.15.4 (Catalina)
VS Code Package used: C/C++, Code Runner

Problem: When I run a C++ code using Code Runner, a file with no extension automatically appear.



I would like to know what does this 'useless file' do, and how to make these files stop from spawning.file not displaying

  • 3
    That is the executable. On unix and linux systems they typically have no extension. In other words, it's very far from useless. – super Jun 22 '20 at 18:05
  • Then, is it impossible to make VS code not generate this file or, at least, hide it? – AlbertKang1004 Jun 22 '20 at 19:35
  • Don't you want to generate an executable? Isn't it kinda the point of "run a C++ code using Code Runner"? Or do you just want to give it a different name? – Bob__ Jun 22 '20 at 20:16
  • build your C++ program to a location outside the project directory. CMake can help you with that – rioV8 Jun 23 '20 at 01:07

1 Answers1

1

That is the executable file also called binary file. They are the executable like .exe in windows so it is very useful(as it is the output of source code). If you dont want to see that file in sidebar of vscode then there is a good answer to this question. Alternatively you can configure your build configuration file (located at .vscode in you working directory) and set the build path to somewhere else

Sudip Ghimire
  • 379
  • 3
  • 13