FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour VS Code Questions
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

VS Code Questions

Posted: Fri Jul 18, 2025 12:22 AM

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 ?

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 231
Joined: Fri Jul 20, 2012 01:49 AM

Re: VS Code Questions

Posted: Fri Jul 18, 2025 01:53 AM
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.
{
	"files.exclude": {
		"folder_to_exclude": true,
		"*.ICO": true,
		"**/*.bak": true
	}
}
It works fine for me. no extension needed ( for what I remember )
Regards,

Lailton Fernando Mariano
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: VS Code Questions

Posted: Fri Jul 18, 2025 01:55 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 38
Joined: Thu Aug 04, 2022 12:45 PM

Re: VS Code Questions

Posted: Fri Jul 18, 2025 03:38 AM

HI, how to work with "projects" in vscode, open project name and load files related ? compile use project name to automate process. thanks

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Re: VS Code Questions

Posted: Fri Jul 18, 2025 04:52 AM

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion