How to open vscode on a large directory of files - visual-studio-code

I have a project that has hundreds of .c .h and .cpp files. I'd like to start using vscode with this project; however, I need to be able to tell vscode what files to actually include in the project (because depending on the build, many files are not included). Is there a way to force a file list into vscode without using the GUI/Add-File mechanism?

Related

Flutter compile modifying too many files

After a simple debug, so many files are modified.
This is the print before debug:
This is the print after debug:
It happens in both platforms (iOS and Android).
The build folder is refreshed everytime you compile your app so all the changes that happen within it are shown here.
You can add a .gitignore to your build folder so these files won't be included in git. You generally don't need to back up/commit this folder as it will be created/refreshed every time you compile the app.
You can either add the whole folder to the main gitignore file or just use the command $ touch .gitignore inside your build folder with * as the content of the file.
If you're using VSCode I would recommend the GitLens extension which let's you (among other things) directly ignore a folder within VSCode.

Why does vscode/platformio insist on adding useless entries to my .gitignore file

I have been using vscode and PlatformIO for a little while now.
I would like my .gitignore file to be:
.pioenvs
.piolibdeps
.vscode/
but for some reason the IDE insists on adding the following every time I start up:
.vscode/c_cpp_properties.json
.vscode/launch.json
I am already ignoring the entire .vscode directory, why is it valuable to ignore individual files within that directory?

Eclipse workspace directory

I want to program in C using Eclipse and I am asked to give a workspace directory when I launch Eclipse. I read that the workspace is where you store your projects. But when I write a .c program and have its .exe file in the same place, I will want to have it in "Documents" or similar and not under C:\users\something. Will all my codes and files be stored there? How should I understand this workspace-directory question?
Sorry, I'm not used to this as I come from Notepad++.
Eclipse's workspace directory is where your projects are stored during development. So your main source code is here, but also all your doco, Eclipse config, test files, executables, etc.
When your project is complete and you are ready to deploy, you can put your executable wherever you want, eg. your "Documents" directory or C:\Program Files.
Responding to your comment, you can also put the source code (.c) wherever you want too. But it would be unusual to deploy source code.

Emacs load extra configuration by command

I am a Emacs user, and have a long configuration file (.emacs) by default. But now I need to add some extra configuration for some specific project. I wonder how I could archive it.
To be more specific:
I have a default .emacs file in the ~/ folder. Now for a specific project under ~/project/, I have a specific Makefile under the project folder, I hope I could press one a default compile key to make it.
I prefer to write another small configuration file in the project folder, and manually load it when I am working in this project. But I don't know how to make it work.
Thanks!

Files disappeared, could be related to Eclipse

I have lost files mysteriously a few times from my Eclipse workspace folder, and previously I assumed that I must have deleted them, but this time I know for sure that I didn't.
I entered a folder for a Java project. I listed the files. There were several text files. I then opened one in gedit to look at it. As far as I remember, I then did something in libreoffice Calc (to a spreadsheet file in a completely separate location), then I made some changes to the Java file in Eclipse. It would then have been automatically compiled. I then went back to the terminal to execute the program, but it wouldn't run. Listing the files shows that the reason it wouldn't run is that all the text files have disappeared and so has one of the .jar files (called stanford-parser.jar) but not another. I've searched my computer for these files and I can confirm they've gone.
A screenshot from my terminal illustrates this.
Can anyone help me to understand how this is happened, so I can avoid it happening again? Could compilation delete the files?
You seem to be storing source files in the bin directory of your Eclipse project, which is probably the target directory used by Eclipse to put the compiled classes. Store your sources in the source folder. The target folder is completeley deleted by Eclipse each time the project is cleaned up.
Note that non .java files stored in the source directory are automatically copied to the target directory by Eclipse. They're considered as resources that must be available at runtime in the compiled application.