Sublime Forum

Shared ST3 project - Linux and Windows

#1

Hi.

I am using ST3 both on Windows and on Linux, and I want to create a project on a shared folder, which might be accessed both by Windows and by Linux.
The problem is, that the files and directories are kept by full path, so on Windows it’s something like

D:\vm_shared\projectA\filename.ext

while on Linux it would be:

/home/media/vm_shared/projectA/filename.ext

Therefore, I can’t use the same project file for both.
Is there any solution for that, besides holding two project(and workspace) files for the same directory?

0 Likes

#2

You can use relative paths in project files and Windows will accept forward slashes. Assuming your .sublime-project file is saved at /home/media/vm_shared/projectA/projectA.sublime-project, you can just use

{
	"folders":
	[
		{
			"path": "."
		}
	]
}
0 Likes