Author Topic: Is there a way to tell SlickEdit never to load files as projects?  (Read 1014 times)

spongyryno

  • Community Member
  • Posts: 48
  • Hero Points: 0
I frequently need to edit Cargo.toml files, and so I open them with:

Code: [Select]
vs.exe cargo.toml

Unfortunately, this closes all of the documents I was working on, and creates a bunch of annoying extra files:

  • Cargo.vpj
  • Cargo.vpw
  • Cargo.vpwhistxml
  • Cargo.vtg

I know I can simply do:

Code: [Select]
vs.exe -e cargo.toml

...but I always forget, and by the time I hit <ENTER> it's too late... I now have to close the project, re-load the files I want, and delete all the extra files.

Is there any way to tell SlickEdit I *never* want to load a file as a project?
« Last Edit: April 10, 2024, 08:18:33 PM by spongyryno »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6882
  • Hero Points: 530
Re: Is there a way to tell SlickEdit never to load files as projects?
« Reply #1 on: April 10, 2024, 09:05:41 PM »
There isn't a way to do this. I like this idea a lot. I get burned when I manually edit .vpw and .vpj files but I'm definitely not the typical user. I'll see if this is possible. My only worry is that some feature relies on it.

Use "vs.exe -fn cargo.toml" to bypass this (not -e).
« Last Edit: April 10, 2024, 09:34:18 PM by Clark »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6882
  • Hero Points: 530
Re: Is there a way to tell SlickEdit never to load files as projects?
« Reply #2 on: April 10, 2024, 09:27:45 PM »
There is already a way to do this. Set the environment variable VSLICK to "-fn".  You can add other command line options to VSLICK too. "-fn" has some special handling to make sure it works right.

It had to be done this way because the command line switches are processed before any configuration information. There's a command line switch to specify where the configuration data is (-sc).
« Last Edit: April 10, 2024, 09:29:41 PM by Clark »

spongyryno

  • Community Member
  • Posts: 48
  • Hero Points: 0
Re: Is there a way to tell SlickEdit never to load files as projects?
« Reply #3 on: April 11, 2024, 02:02:42 AM »
That works!  :)