Pelles C > Feature requests
Sorting lines in editor
YellowBeast:
I like to sort the #include'd header files.
It would be nice if the editor in Pelles C would allow you to select text, then sort its lines.
(For example, in Sublime Text 2 the F9 key sorts selected lines.)
Bitbeisser:
--- Quote from: YellowBeast on May 03, 2014, 07:47:15 PM ---I like to sort the #include'd header files.
It would be nice if the editor in Pelles C would allow you to select text, then sort its lines.
(For example, in Sublime Text 2 the F9 key sorts selected lines.)
--- End quote ---
Doesn't make much sense to me.... ???
Sort by what criteria?
Ralf
YellowBeast:
--- Quote from: Bitbeisser on May 04, 2014, 01:49:34 AM ---Doesn't make much sense to me.... ???
Sort by what criteria?
--- End quote ---
Sort alphabetically. For example:
--- Code: ---#include <string.h>
#include <float.h>
#include <stdio.h>
#include <stddef.h>
// would become
#include <float.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
--- End code ---
By ordering the lines, it can be easier to check which headers are included.
Pelle:
Sounds like a very specialized feature - for you, and probably only you. No thanks.
An add-in could do the job.
Manos:
Sometimes a header file needs to be first than others.
Changing the order you will take errors.
Manos.
Navigation
[0] Message Index
[#] Next page
Go to full version