This request is inspired by Shield's well received suggestion over here: Please make the auto-complete list context-sensitive!
For example when you're on the flags parameter in OpenWindow(), the editor should just show the allowed window flags or at least put them on top. Maybe the most recently and/or frequently used ones should also be displayed first. Furthermore it could be handy to exclude certain topics (per project?), e.g. everything exclusively related to the 3D library etc.
To clarify: I'm talking about reordering the suggested items in the auto-complete list in a more intelligent way -- potentially not only for flags but everything everywhere like Content Assist in Eclipse or IntelliSense in Visual Studio.
Edit: Added a little more explanation.
IDE - Make Auto-Complete Context-Sensitive
IDE - Make Auto-Complete Context-Sensitive
Last edited by c4s on Tue Apr 21, 2015 9:59 am, edited 1 time in total.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: IDE - Make Auto-Complete Context-Sensitive
I disagree. I use custom flags for many things, including for window flags, so excluding my custom flags just because the text to the left of the cursor is OpenWindow(), is plain annoying. I should be able to autocomplete anything at any time, not just where the cursor is sitting.c4s wrote:For example when you're on the flags parameter in OpenWindow(), the editor should just show the allowed window flags or at least put them on top.
Re: IDE - Make Auto-Complete Context-Sensitive
Working on OpenWindow flags parameter, It should only show up the associated flags that can be used. Excluding all the other #PB_* parameters that has no relations. This is something I never understood or agree with about PB. As it stands currently I have to jump way down to the near end of this list just to find the associated OpenWindow flag(s).
+1 for c4s feature request.
+1 for c4s feature request.
Last edited by Thunder93 on Tue Apr 21, 2015 3:24 pm, edited 2 times in total.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
Re: IDE - Make Auto-Complete Context-Sensitive
@Dude
I think you're misunderstanding my request because I've never mentioned that custom items should be excluded. I'm talking about reordering the suggested items in the auto-complete list in a more intelligent way. Every serious IDE I know of (e.g. Content Assist in Eclipse or IntelliSense in Visual Studio) is already doing that as it obviously reduces errors and improves typing speed.
If you're against it then you've probably never used something like that before so you don't know the advantages (which is of course totally fine). I respect your opinion but dismissing such an important feature just because you got used to your own workflow isn't necessarily a useful advice for the PureBasic team.
I think you're misunderstanding my request because I've never mentioned that custom items should be excluded. I'm talking about reordering the suggested items in the auto-complete list in a more intelligent way. Every serious IDE I know of (e.g. Content Assist in Eclipse or IntelliSense in Visual Studio) is already doing that as it obviously reduces errors and improves typing speed.
If you're against it then you've probably never used something like that before so you don't know the advantages (which is of course totally fine). I respect your opinion but dismissing such an important feature just because you got used to your own workflow isn't necessarily a useful advice for the PureBasic team.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: IDE - Make Auto-Complete Context-Sensitive
Relevant ordering in the auto-complete menu is a great idea; and so is library-based exclusions.c4s wrote:...the editor should just show the allowed window flags or at least put them on top. ... it could be handy to exclude certain topics (per project?), e.g. everything exclusively related to the 3D library etc.
However, these settings should be user-selectable based on preference.

Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 

Re: IDE - Make Auto-Complete Context-Sensitive
The problem is, you are speaking here only for PB native commands. This should also work with customer commands. A way for this, I posted 5 years ago:
http://www.forums.purebasic.com/english ... =3&t=42480
http://www.forums.purebasic.com/english ... =3&t=42480
sorry for my bad english
Re: IDE - Make Auto-Complete Context-Sensitive
+1 for sure. Just because the current command is OpenWindow, doesn't mean I want to autocomplete any window flags right there.TI-994A wrote:these settings should be user-selectable based on preference.
Re: IDE - Make Auto-Complete Context-Sensitive
+1severaltrillion
Proud supporter of PB! * Musician * C64/6502 Freak