Improving Code Completion lazarus / 6-IDE-CodeTools ---------------------------------------------------------------------- regs · 2015-12-26 12:05 Been working to improve Code Completion. There is still plenty of things to do. Particularly figuring out how to avoid of calling GatherContextKeywords in values and parameters. But here is what has been done already with few screenshots. - Auto invoke code completion - Customizable code completion form - CnWizard-like extended filter - Images in code completion - All optional https://yadi.sk/i/XcyaHPQAmWAJD https://yadi.sk/i/izAFklyumWAJd https://yadi.sk/i/jv_tW2demWAJp ---------------------------------------------------------------------- Edson · 2015-12-27 23:28 Good job. ---------------------------------------------------------------------- regs · 2016-03-26 19:59 So, i still have that question that i have no much time to dig in. I can add keywords to begin block. I've found how to avoid listing them in object children (after .). Yet still most of them should be shown in () and after =. Or at least a way to place them at the bottom of completion form list. Can't figure it out as well. They keep popping up the top. ---------------------------------------------------------------------- Martin_fr · 2016-03-26 21:20 If possible you should ask those on the mail list. That will get more attention from those who know the answers. ---------------------------------------------------------------------- Edson · 2016-03-27 19:23 By the way, you can check my library: https://github.com/t-edson/SynFacilCompletion It could give you some ideas. ---------------------------------------------------------------------- regs · 2016-07-27 19:12 Quote from: Edson on March 27, 2016, 09:23:45 pmBy the way, you can check my library: https://github.com/t-edson/SynFacilCompletion It could give you some ideas. Well, all stuff above is already done. Those are real screenshots. The only problem left are keywords in begin block. As completion fires automatically, all keywords should be in completion as well, so you will able to type if to get if, not ifData. I can add then any way, but then keywords would always be in top of completion list. That would be pretty annoying. So this is the question about codetools, rather than completion form. How to move them down, or populate them among topleast items. Until then it's a bit pointless to file patches on tracker. Usability wouldn't be among greatest. ---------------------------------------------------------------------- regs · 2016-08-14 19:32 Took a bit time to look into myself. Ended up by moving GatherContextKeywords down a bit after check if procedure is allowed, if that is ok? Added condition Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if not (ilcfDontAllowProcedures in CurrentIdentifierList.ContextFlags) and   not (GatherContext.Node.Desc in AllClassObjects) then                     GatherContextKeywords(CursorContext,IdentStartPos,Beautifier);   The way it works. If everything is ok, i'll keep adding patches. https://www.youtube.com/watch?v=1dZnS2HNIIU ---------------------------------------------------------------------- shobits1 · 2016-08-15 19:46 Interesting  now how do I get this in my Lazarus. ---------------------------------------------------------------------- jmpessoa · 2016-08-15 21:09 Hi All, My question: It has some way to get/paste the complete [method] code showing?  Example: I want paste: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i    Self.SetAutoScroll(Value: Boolean);  not just: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i    Self.SetAutoScroll();  Thanks!