Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change monodevelop f# file order

Tags:

f#

monodevelop

I have started using MonoDevelop for F# on a Mac. It's pretty cool, except for the fact that it crashes quite a lot. One thing that is bothering me is that I can't change the order of the F# source files in a project. Is this possible? It will make organising projects a bit of a nightmare if it isn't.

like image 380
Aidan Avatar asked Mar 16 '11 22:03

Aidan


2 Answers

Yes, you can reorder files. There is a special tab for doing that in project options (under the build tab).

Unfortunatelly, this cannot be done using the file browser (because MonoDevelop automatically sorts files by file name and there is no way to disable it).

like image 51
Tomas Petricek Avatar answered Sep 24 '22 11:09

Tomas Petricek


Assuming you're using MonoDevelop 4.x and a recent version of F# Binding, you can drag and drop to move files into a correct order (no shortcut key supported yet).

Here is the original issue and the pull request if you're interested in (big thanks to Dave Thomas for implementing this).

As a last resort, you can open fsproj files in a text editor and rearrange xml nodes corresponding to source files.

like image 45
pad Avatar answered Sep 25 '22 11:09

pad