After the seminar on using VS Code with Github and CoPilot, I decided to give it a try for editing. I have used UE Studio for many years, and find it does what I want except for AI integration. So I decided to work with VS Code, knowing others are using it also.
Here is my main question. Right now I have all of the source code in a single folder. This includes .prg files, .bmp, .ico, .c, and .obj plus my .mak and of course my .exe that is created.
When I set up Explorer, all of the files show up. I only want it to show the .prg files.
I tried putting the other files in other directories but then when performing the build, it reports it can't find the .ico files. That is annoying because they are there and the path is valid.
I have not been able to set a filter to just show files I want ( like just the .prg files ).
As anyone had success setting this up ?
VS Code Questions
VS Code Questions
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
[email protected]
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
[email protected]
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Re: VS Code Questions
Inside root folder your project, make this folder .vscode and create a file named settings.json inside it.
Then you can make a list with "folder" and "files" to exclude from the sidebar.
It works fine for me. no extension needed ( for what I remember )
Then you can make a list with "folder" and "files" to exclude from the sidebar.
Code: Select all | Expand
{
"files.exclude": {
"folder_to_exclude": true,
"*.ICO": true,
"**/*.bak": true
}
}
Regards,
Lailton Fernando Mariano
Lailton Fernando Mariano
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: VS Code Questions
HI, how to work with "projects" in vscode, open project name and load files related ? compile use project name to automate process. thanks
Re: VS Code Questions
The AI instructions are wrong based on the current version of VS Code.
It says to exclude all ( *.* ) with True, then the ones you want to reveal you should specify as false.
That is not correct and even CoPilot admits it when told it is wrong ( because it offers the same solution as what Antonio provided ).
Lailton's example shows the correct statements.
In my case, all of the .ico, .bmp, .c, .obj files are in the same source folder as the .prg. Using this method, my Explorer only displays the files I want to see ( .mak, .rc, .prg ). It is much easier to use it this way.
Tim
It says to exclude all ( *.* ) with True, then the ones you want to reveal you should specify as false.
That is not correct and even CoPilot admits it when told it is wrong ( because it offers the same solution as what Antonio provided ).
Lailton's example shows the correct statements.
In my case, all of the .ico, .bmp, .c, .obj files are in the same source folder as the .prg. Using this method, my Explorer only displays the files I want to see ( .mak, .rc, .prg ). It is much easier to use it this way.
Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
[email protected]
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
[email protected]
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit