Author Topic: In Windows, open new files in Unix format (LF) by default?  (Read 3064 times)

rowbearto

  • Senior Community Member
  • Posts: 1986
  • Hero Points: 122
In Windows, open new files in Unix format (LF) by default?
« on: October 23, 2014, 06:38:51 pm »
Hi:

When I am working in Windows, I would like to know if there is a way to configure SE to open new files by default with Unix line endings.

When I want to create a new file, I usually press Ctrl+O for the open dialog, navigate to the directory where I want to create the file, and type in a file name that does not exist. I try to remember to select the "Unix/Mac OS X (LF)", but sometimes forget.

Is there a way to configure SE to open new files in "Unix/Mac OS X (LF)" format by default in Windows?

Thanks,
Rob

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6068
  • Hero Points: 467
Re: In Windows, open new files in Unix format (LF) by default?
« Reply #1 on: October 24, 2014, 04:43:42 pm »
The closest option I know of is a save option which effects all files and not just new files.

An option just for new files would be nice.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6068
  • Hero Points: 467
Re: In Windows, open new files in Unix format (LF) by default?
« Reply #2 on: October 29, 2014, 02:45:58 am »
v19 has some new switches to choose the file format for new files you create. We didn't have time to add it to the GUI.

append "+fnu" to the def_load_options Slick-C variable.

You can download the new v19 version now.

rowbearto

  • Senior Community Member
  • Posts: 1986
  • Hero Points: 122
Re: In Windows, open new files in Unix format (LF) by default?
« Reply #3 on: October 30, 2014, 02:02:16 am »
Thanks so much Clark!

I just tried it in the new v19 and it works great!