How to auto complete from API list?
-
I've seen this in Davids videos. I thought it was just double clicking on the API command but that doesn't seem to work for me...?
-
@observantsound That hasn't worked for a long time :(
-
@observantsound pressing 'enter' works on PC here.
On MacOS the auto complete doesn't even appear most of the time. -
@Matt_SF I don't think he's talking about the auto-complete popup. It used to be the case that you could double-click an item in the API browser and it would add it to your script, but that no longer works.
-
@d-healey oh you're right (it seems I'm lacking focus today) , yeah this has been broken for a while indeed. Too bad, that was useful.
-
@Matt_SF But still you're right, the auto-complete doesn't always work as intended. For instance
Console.print()
is not always showing...
Would be good to get back the double-click on the APIs as well,and the "All component folded" I added a while ago when opening the project... This somehow disappeared, I'll have a look if I can do somethingEDIT: In fact the component list can be collapsed with a right click =>
Open tree by default
(which is not recalled, but since it's at one click...) -
@ustk The API double-ckick (or press return key) has not been implemented for the new code editor and is beyond my skills:
void MainController::insertStringAtLastActiveEditor(const String &string, bool selectArguments) { #if USE_BACKEND if (lastActiveEditor.getComponent() != nullptr) { auto ed = dynamic_cast<PopupIncludeEditor::EditorType*>(lastActiveEditor.getComponent()); #if !HISE_USE_NEW_CODE_EDITOR ed->getDocument().deleteSection(ed->getSelectionStart(), ed->getSelectionEnd()); ed->moveCaretTo(CodeDocument::Position(ed->getDocument(), lastCharacterPositionOfSelectedEditor), false); ed->insertTextAtCaret(string); if (selectArguments) { ed->moveCaretLeft(false, false); while (!ed->getTextInRange(ed->getHighlightedRegion()).contains("(")) ed->moveCaretLeft(false, true); ed->moveCaretRight(false, true); } #endif ed->grabKeyboardFocus(); } #endif }
-
Ok good to know that the whole auto complete is a bit inconsistent.
So it's not just me doing it wrong!