What about auto completion in Cross Studio?

Completed

Comments

36 comments

  • Avatar
    Paul Curtis

    Open up $(StudioDir)/bin/studio.xml and uncomment the Template menu:

    <definemenubar name="MainMenuBar">
    <menu name="FileMenu"/>
    <menu name="EditMenu"/>
    <menu name="ViewMenu"/>
    <menu name="SearchMenu"/>
    <menu name="NavigateMenu"/>
    <menu name="TemplateMenu"/>
    <menu name="ProjectMenu"/>

     In the project menu you'll find a bunch of templates.  You can then edit them to what you'd like. Enable templates by Tools > Options > Text Editor > Programmer Assistance > Include Templates in Suggestions -> Yes

    0
    Comment actions Permalink
  • Avatar
    Piotr Chodorowski

    Auto completion is very nice feature but i can't find option to enable defines suggestions.

    Is it possible in V3 RC? When I code for STM32 it will be very helply if CrossWorks could suggest me bits definitions.

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    clang has a bug where it corrupts memory when recording preprocessor tokens.  So no, not yet, not until that is fixed.

    0
    Comment actions Permalink
  • Avatar
    Robert Brown

    Could you please give an update on the status of completion for preprocessor tokens? I tried a few 3.0RCs and it didn't seem to be working.

    Thanks.

    0
    Comment actions Permalink
  • Avatar
    Paul Curtis

    You'll find it's still not possible because the clang bug is not fixed.  Even if it were fixed, the CMSIS and device header files make suggestions almost worthless because there are literally tens of thousands of them.

    0
    Comment actions Permalink
  • Avatar
    James French

    So far loving 3.2 and the working Go to Definition! One thing that's quite significant for me is using the enter key to accept code completion suggestions. All of the other IDEs I use, and have used either accept these just by pressing the down key to highlight which you want, then hitting space, or by hitting tab. I find the enter key to be quite awkward for this and would love an option to configure this to be another key. Bit of a nit-pick but it would make it that little bit nicer.

    0
    Comment actions Permalink

Please sign in to leave a comment.