B4X Booklets
B4X I D E
Integrated Development Environment
Copyright: © 2022 Anywhere Software Edition 2.4
Last update: 2022.08.15
Table of contents 2 B4X IDE
1 B4X platforms .............................................................................................................................. 7
2 IDE General ................................................................................................................................. 8
2.1 Create a new project ............................................................................................................. 9
2.1.1 Create a new B4A or B4i project ..................................................................................... 9
2.1.2 Create a new B4J project.................................................................................................. 9
2.2 Open existing project ......................................................................................................... 10
3 Titlebar, Menu and Toolbar ....................................................................................................... 11
3.1 Titlebar ............................................................................................................................... 11
3.1.1 Recent code positions (AutoBookmarks)....................................................................... 11
3.1.2 Quick Search field .......................................................................................................... 11
3.2 Toolbar ............................................................................................................................... 12
3.3 File menu ............................................................................................................................ 13
3.4 Edit menu ........................................................................................................................... 13
3.5 Project menu....................................................................................................................... 14
3.5.1 Add a new module ......................................................................................................... 15
3.5.1.1 Class modules ........................................................................................................ 15
3.5.2 Add an existing module ................................................................................................. 16
3.5.3 B4J Build Standalone Package...................................................................................... 17
3.5.3.1 Tips and special cases ............................................................................................ 18
3.6 Tools menu ......................................................................................................................... 19
3.6.1 IDE Options ................................................................................................................... 20
3.6.1.1 Language ................................................................................................................ 21
3.6.1.2 Themes ................................................................................................................... 22
3.6.1.3 Font Picker ............................................................................................................. 23
3.6.1.3.1 Word wrap ........................................................................................................ 23
3.6.1.4 Auto Save ............................................................................................................... 23
3.6.1.5 Auto Backup .......................................................................................................... 24
3.6.1.6 Configure Process Timeout .................................................................................... 24
3.6.1.7 Disable Implicit Auto Completion ......................................................................... 24
3.6.2 Take Screenshot B4A only ....................................................................................... 25
3.6.3 Create Video B4A only ................................................................................................. 26
3.6.4 Clean Files Folder (unused files) ................................................................................... 27
3.6.5 Clean Project .................................................................................................................. 27
3.6.6 Configure Paths .............................................................................................................. 28
3.6.6.1 B4A ........................................................................................................................ 28
3.6.6.2 B4i .......................................................................................................................... 28
3.6.6.3 B4J ......................................................................................................................... 29
3.6.6.4 B4R ........................................................................................................................ 29
3.6.6.4.1 java.exe B4A / B4i / B4J ................................................................................. 30
3.6.6.4.2 Additional Libraries ......................................................................................... 30
3.6.6.4.3 Shared Modules ................................................................................................ 30
3.6.7 SDK Manager B4A only ............................................................................................... 31
3.6.8 Jetifier AndroidX B4A only .......................................................................................... 32
3.7 Windows menu .................................................................................................................. 34
3.8 Help menu .......................................................................................................................... 35
3.8.1 Online Help .................................................................................................................... 35
3.8.2 About .............................................................................................................................. 35
3.8.3 Like B4A? Support us by contributing ......................................................................... 36
3.9 Right click menu ................................................................................................................ 37
3.10 Compiler mode ................................................................................................................... 38
3.10.1 B4A and B4J .............................................................................................................. 39
3.10.1.1 Release and Release (obfuscated) modes B4A and B4J .................................... 39
3.10.2 B4i .............................................................................................................................. 40
Table of contents 3 B4X IDE
3.10.3 B4R ............................................................................................................................ 40
4 Code area .................................................................................................................................... 41
4.1 Split the code area .............................................................................................................. 41
4.2 New version available ........................................................................................................ 42
4.3 IDE text size ....................................................................................................................... 42
4.4 Code header Project Attributes / Activity Attributes ......................................................... 43
4.4.1 B4A ................................................................................................................................ 43
4.4.1.1 Project Attributes ................................................................................................... 43
4.4.1.2 Activity Attributes .................................................................................................. 43
4.4.1.3 Service Attributes ................................................................................................... 43
4.4.2 B4i .................................................................................................................................. 45
4.4.3 B4J ................................................................................................................................. 45
4.4.4 B4R ................................................................................................................................ 45
4.5 Undo Redo .......................................................................................................... 46
4.6 Collapse a subroutine ......................................................................................................... 46
4.7 Collapse the entire code ..................................................................................................... 47
4.8 #Regions ............................................................................................................................. 48
4.9 Toggle Outlining Ctrl + 0 ................................................................................................. 49
4.10 Copy a selected bloc of text ............................................................................................... 50
4.11 Move line(s) up / down Alt + Up / Alt + Down ................................................................ 50
4.12 Find / Replace .................................................................................................................... 51
4.13 Commenting and uncommenting code ................................................................. 52
4.14 Bookmarks ................................................................................................................... 53
4.15 Indentation ............................................................................................................. 54
4.16 Auto format ........................................................................................................................ 56
4.17 Documentation tool tips while hovering over code elements ............................................ 57
4.17.1 Hovering over a subroutine name .............................................................................. 57
4.17.2 Hovering over a subroutine call ................................................................................. 58
4.17.3 Hovering over a keyword ........................................................................................... 58
4.17.4 Hovering over an object name ................................................................................... 59
4.17.5 Hovering over a variable type .................................................................................... 59
4.17.6 Hovering over a View type ........................................................................................ 60
4.18 Auto Completion ................................................................................................................ 62
4.19 Built in documentation ....................................................................................................... 66
4.19.1 Copy code examples .................................................................................................. 67
4.19.2 Create Type routine .................................................................................................... 68
4.19.3 Navigate in the IDE, jump to recent positions of the cursor ...................................... 69
4.19.3.1 Navigate back ..................................................................................................... 69
4.19.3.2 Navigate forward ................................................................................................ 69
4.19.3.3 Jump to a given location .................................................................................... 69
4.20 Jump to a code line ............................................................................................................. 70