Other [new feature] Blocks Completion

Discussion in 'Android Questions' started by Erel, Aug 6, 2015.

  1. Erel

    Erel Administrator Staff Member Licensed User

  2. sorex

    sorex Expert Licensed User

    less typing is always a nice feature ;)
     
  3. DonManfred

    DonManfred Expert Licensed User

    GREAT! :)
     
    Peter Simpson likes this.
  4. moster67

    moster67 Well-Known Member Licensed User

    very nice!
     
  5. Filippo

    Filippo Expert Licensed User

    It is about time.
    You learn also continue as we all.
    Thank you :)
     
  6. Peter Simpson

    Peter Simpson Well-Known Member Licensed User

  7. imbault

    imbault Well-Known Member Licensed User

    Is that a next release feature?
     
  8. DonManfred

    DonManfred Expert Licensed User

    i think yes
     
  9. LucaMs

    LucaMs Expert Licensed User

    Great, very useful.

    Try-Catch-End Try

    and I'm thinking to other blocks, otherwise Erel could be bored :D


    [P.S. #Region - #End Region]


    I would insert also "Log(LastException.Message)" in the Catch section (the developer can easily delete it).

    Select Case - End Select

    Do While - Loop



    Too bad that there is the possibility of publishing the "Wish"; as work, I would like to make the prompter (well-paid :D). In fact, the best job possible is the critic!



    Adding automatically closing brackets and quotes?
    One recent feature is Activity_LoadLayout("HereABalFileName. I would add the brackets.
    Same, for example, when the user writes "Log(, I would add ) and set the cursor after the first parenthesis.


    Stop, I should work, not flooding this thread :)
     
    Last edited: Aug 6, 2015
    Jaames likes this.
  10. Erel

    Erel Administrator Staff Member Licensed User

    Yes, it is a feature implemented for the next version of B4A.

    It also completes the other types of blocks (except of #region and #if which are treated differently by the parser).

    Good idea.
     
    Kwame Twum, imbault and LucaMs like this.
  11. moster67

    moster67 Well-Known Member Licensed User

    will this be extended to next versions of B4J and B4I too (considering the underlying IDE is the same)?
     
  12. DonManfred

    DonManfred Expert Licensed User

    i would guess YES as the three share the same base IDE as far as i know of.
     
  13. DonManfred

    DonManfred Expert Licensed User

    @Erel please share more new features :D
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    That's correct.

    During the development of B4i v2.0 and B4J v3.50 many small improvements and bug fixes were made. Therefore I want to release the next B4A version quite soon.
    The major new feature is the starter service (http://www.b4x.com/android/forum/threads/new-feature-starter-service.56923/). This is an important feature that makes it much easier to correctly handle the activities and services life-cycle.
     
    imbault and DonManfred like this.
  15. LucaMs

    LucaMs Expert Licensed User

    Do you know that great feature...
    when you write "Sub " + TAB and the cursors waits for the "event name"?

    Imagine:
    you write a call to a sub which requires n parameters; the editor creates
    (,,,) and the cursor moves in the right positions after your Tab.

    Hard to implement, I know, but...!

    (I hope I have explained well enough. If not, be prepared to study Italian :p)
     
  16. DonManfred

    DonManfred Expert Licensed User

    autocomplete with the eventname set earlier in code... YES, that would be a GREAT addition!

    +1
     
  17. peacemaker

    peacemaker Well-Known Member Licensed User

    How will it be working if to add new "if" into already existing "if" ?
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    It will not add the closing End If in that case as the compiler will match the existing End If to the new If.

    However if you add an If inside another block it will complete it.
     
    Peter Simpson likes this.
  19. Jim Brown

    Jim Brown Active Member Licensed User

    DonManfred likes this.
  20. LucaMs

    LucaMs Expert Licensed User

    This is not the right place, as usual (you should be used to it, Erel :D) but I would like to know why you have not implemented one of the "Wish" which I think is very useful: the management of code snippets. Is it more complicated than I imagine? (this, in fact, may be one reason: often I think that develop a certain sw is easy and then I meet a thousand small obstacles).
     
Loading...