VS Code Questions

Post Reply
User avatar
TimStone
Posts: 3031
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

VS Code Questions

Post by TimStone »

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
[email protected]
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
Lailton
Posts: 231
Joined: Fri Jul 20, 2012 1:49 am
Location: Brazil
Contact:

Re: VS Code Questions

Post by Lailton »

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.

Code: Select all | Expand

{
	"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
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: VS Code Questions

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
NWKL
Posts: 39
Joined: Thu Aug 04, 2022 12:45 pm

Re: VS Code Questions

Post by NWKL »

HI, how to work with "projects" in vscode, open project name and load files related ? compile use project name to automate process. thanks
User avatar
TimStone
Posts: 3031
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: VS Code Questions

Post by TimStone »

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
[email protected]
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Post Reply