Kodex
A powerful code editor
Free · In‑App Purchases
Kodex is an advanced code editor which brings powerful and desktop-class editor features to your iPad or iPhone:
* Multi-caret editing, to quickly transform code selections.
* Regex search and replace, with template matching and replace-all-matches.
* Minimap which allows quick scroll navigation though the document.
* Multiple window support
* Syntax highlighting for over 150 languages.
* Trackpad support with custom gestures to add cursors (ctrl+shift+click).
* Auto complete feature (currently only for HTML).
* Add as many guide columns as you wish (default 80 and 120 characters).
* Configurable tab size (default 4 spaces), or insert spaces when pressing tab.
* Draw hints for invisible characters such as new lines, tabs, and spaces.
* Customizable key bindings, so you can configure Kodex to use the same key combos you are already used to.
* Kodex smartly preserves your open documents so that your work stays as you left it between launches.
* Light and Dark modes.
Kodex is integrated with the Files app, so you can easily open files from any other app, and from your iCloud documents folder.
You can launch Kodex QuickEdit from any file sharing view in any app to edit its contents without launching the main Kodex App (be aware this functionality depends on the host app implementing the sharing activity properly).
Included are 10 editor themes, and several monospaced fonts for code editing (you can install your own preferred fonts using system profiles). Font size and line spacing are adjustable, so you can configure Kodex to best fit your preferred screen size, arrangement, and orientation.
Kodex is not a compiler, and you can not build or run the code you edit from it. Think of Kodex as a NotePad++ or Sublime Text substitute for iPhone and iPad.
Kodex is currently optimized for external keyboards, such as Apple's Smart Keyboard for the iPad Pro, or any bluetooth/USB keyboard. More virtual keyboard features will be added in a future version.
more
Fixes crash on launch.
1.4.2 04/01/2024
This patch update fixes an issue where users couldn’t open files from the document picker in devices running iOS 11 and iOS 12, and introduces another workaround for a system crash involving trackpad pointers when hovering some buttons.
These are the changes for version 1.4:
Kodex version 1.4 brings many big improvements and bugfixes. As always, thank you for using Kodex and feel free to reach out with comments and questions. Happy coding!
New features and improvements:
* Support for multiple windows: Drag a document tab out of the app in iPad OS to create a new window.
* Seamlessly drag tabs between open windows to transfer documents between them.
* State preservation: Your open documents are now preserved between launches, included position inside the document and text selections.
* Added support for external pointing devices (trackpads and mice), including UI hints when moving the pointer over text and buttons.
* Drag or scroll over the minimap to quickly scroll through the document, tap or click on the minimap to scroll to that location in the document.
* The landing screen (the screen displayed when no documents are open) now displays your recently opened documents (this info is not available retroactively, but after you open one or more files they will be listed in the landing screen).
* Improved extra tools buttons in toolbar, that now use a system context menu when right-clicked or long-pressed.
* Opening documents from the recents list will also restore the text selections and the scroll position.
* Temporary documents that aren't open are now displayed under the recent documents in the landing screen.
* New built-in font: JetBrainsMono
Bug fixes:
* Fix bug where document could be autosaved when closing the app even though autosave was disabled.
* Fixes a crash that would happen when clicking certain UI controls that changed the editor text using a trackpad or mouse.
1.4.1 05/14/2020
Kodex version 1.4 brings many big improvements and bugfixes. As always, thank you for using Kodex and feel free to reach out with comments and questions. Happy coding!
New features and improvements:
* Support for multiple windows: Drag a document tab out of the app in iPad OS to create a new window.
* Seamlessly drag tabs between open windows to transfer documents between them.
* State preservation: Your open documents are now preserved between launches, included position inside the document and text selections.
* Added support for external pointing devices (trackpads and mice), including UI hints when moving the pointer over text and buttons.
* Drag or scroll over the minimap to quickly scroll through the document, tap or click on the minimap to scroll to that location in the document.
* The landing screen (the screen displayed when no documents are open) now displays your recently opened documents (this info is not available retroactively, but after you open one or more files they will be listed in the landing screen).
* Improved extra tools buttons in toolbar, that now use a system context menu when right-clicked or long-pressed.
* Opening documents from the recents list will also restore the text selections and the scroll position.
* Temporary documents that aren't open are now displayed under the recent documents in the landing screen.
* New built-in font: JetBrainsMono
Bug fixes:
* Fix bug where document could be autosaved when closing the app even though autosave was disabled.
* Fixes a crash that would happen when clicking certain UI controls that changed the editor text using a trackpad or mouse.
1.4 05/12/2020
This patch update is packed with bug fixes and new features, some that have been requested for a while. As always, thank you for using Kodex and for your positive feedback. Happy coding!
New features:
- When multiple selected ranges are present, you can now drag on the drag handle of the main selection range to adjust the length of all selected text ranges.
- When multiple selected ranges are present, you can now tap on one of the selected ranges to make it the main selected range, and thus move the drag handles to that selected range.
- Added "Save Document As…" feature to allow saving the changed document to a new location without touching the existing file. This feature is most useful if used with autosave turned off.
- Added "Replace All" option to the search-replace feature.
- Added option to turn off displaying line numbers on the left side of the editor.
- Added "plain text" language in the syntax highlight picker to force disabling syntax highlighting.
- When using Control+Shift+Up/Down to add a new selection, or the "Add Caret Above/Below" navigation bar buttons, if the current cursor is a non-zero length selection, the new selection will attempt to match the length of that range
Fixes:
- Fixed bug that caused visual glitches on editor after changing line height
- Fixed bug that caused the selection ranges to be displayed at incorrect locations after changing font, font size, or line height
- Fixed bug that caused the wrong font size to be applied to the source code after changing editor themes
- Fix drawing highlighted text when searching
- Fix alignment of navbar items in the editor view
- Improved performance when handling very large files.
- Fix selection behavior when to using Command+Shift+Left/Right to expand selections to include the rest of the line, which would produce unexpected results depending on the previous movement of the selection cursor
1.3.2 03/05/2020
Fixed crash that would sometimes happen when deleting several lines using multi-caret mode.
Fix editor automatically replacing quotes and dashes with "prettier" versions that break code.
Improves highlighter engine to be more reliable, which should solve many crashes that happened during editing.
1.3.1 02/16/2020
This update brings some fixes:
* Minimap now works reliably on iOS 13
* Fix theming issues on iOS 13
* Fix search bar changing to a broken size and placement when switching apps
After many requests by several users, a Tip Jar has been added to Kodex. Tipping is not mandatory for continued usage of Kodex and will not unlock any new features.
1.3 11/21/2019
This release fixes issues loading documents from third-party providers.
Opening and closing documents should be faster now as well.
1.2.5 03/08/2019
This version brings small fixes to the indentation engine and other bug fixes in the code editor.
1.2.4 02/27/2019
This update brings support for the new iPad display sizes and improved highlighting/editing performance by rewriting more string handling-related code from Swift to Objective-C and by refactoring existing algorithms. It also fixes some bugs, including the following:
* Fix issue where temporary files could be reloaded with a line count of zero or a negative value.
* Improve support for insertion of provisional text (such as when an accent key is pressed on an external keyboard followed by a letter key to insert a single accented letter).
* Improve highlighting support for multi-line elements (such as JavaScript templates) and for block comments.
* Improve stability of highlighting engine by fixing some off-by-one buffer access crashes.
Please notice: I'm aware of a crash when opening files. However the crash logs do not provide enough data to help me fix that, and I'm not even sure if it's a bug on Kodex or on UIKit. If you are experiencing or have experienced crashes when opening files, please contact me with details via contact@bruno.ph. Thanks!
1.2.3 11/20/2018
This update fixes a glicth that would happen on compact layouts when showing the language picker or other full-screen modal views. That glitch would break the text editor and prevent a bunch of behaviors from working properly, including layout updates, scrolling, and many more.
1.2.2 09/03/2018
This release fixes several bugs:
* Glitch when closing a temporary file that was in a broken state (move dialog was canceled).
* Fix glitch where inserting text on a file composed of only whitespaces produced black text with the default font.
* Fix glitch that could cause a temporary file to not be saved when requested.
* Refactor how text is inserted into text buffer for improved reliability (fixes several crashes when typing).
* Improved bound checks that fixes several off-by-one and out-of-bounds text glitches.
UI Changes:
* Tab bar is now hidden when no files are open.
* Empty temporary files can be closed without going through a confirmation dialog.
1.2.1 07/19/2018
This major release includes many new features and also fixes several bugs. It is also the first release to use the new Icon that was designed to change colors with the tinting you choose in the app preferences (read more below).
New features:
– Temporary files: You don't have to create a file in the Files browser before you start writing. You can create new temporary files from the main screen and start working right away. When you're done just hit save, pick a file name, and a new location for your file. Just as usual this location can be anywhere that's accessible from the Files app. On top of that, temporary files are preserved between launches, so you can keep working on them for as long as you wish before finally saving them somewhere.
- QuickEdit extension: From any app that exposes a share sheet for files, you can now pick "Kodex QuickEdit" which will launch a lite version of the Kodex editor so that you can make quick changes without launching Kodex (be aware this functionality depends on the host app implementing the sharing activity properly).
- Tints: You can now pick a different tint color for the app, in case you prefer a color different from red. This will also change the App icon to match.
Fixed bugs:
– Crash when looking up occurrences at the text buffer end.
– Crash related to the highlighting engine when the text contents were changed very quickly.
– Add support for expanding multiple selections above or below using Shift+Up/Down.
– Increasing indentation on last line when it is empty (default binding Command+]) now works.
– Increasing tabulation with multiple carets when using spaces for tabs now works.
– Forward delete when using multiple carets now works.
– Other corner case crashes/glitches related to editing have been fixed.
1.2 06/30/2018
New features:
– Adds "select next occurrence" item to the carets toolbar button in the editor.
– On the key bindings configuration list, hitting a certain key combination will highlight it in the list if it is set to any binding.
– The tab key is now available to be used for custom key combo bindings.
Bug fixes:
– Improved stability of the syntax highlighting engine. (There are still some known corner case issues which should be addressed in a future update).
– Fix for issue where the code would scroll horizontally even though it was being properly laid-out in a container that fit the screen entirely.
– Kodex now displays a larger version of the files browser, so that the sidebar is displayed on screens where it fits.
– Fixes minimap "visible region" color on editor themes with a light background.
– Slightly improved performance on large files (on the 1-10MB range). Work is being done to support even larger files.
– Fixes an issue where the file could be saved even if "close discarding changes" was selected.
– General polishing of many features, and fixes of small visual glitches.
1.1.2 06/13/2018
Improved file handling: Open or draw-and-drop several files at once into Kodex. Drop a file onto the app's title bar to open it on a new tab.
Fixes dropping a file into the text buffer not being undoable.
Updated icon.
1.1.1 05/17/2018
New features:
* Editor minimap: Kodex now features a minimap, which displays the contents of the file you're editing, and allows you to quickly scrub over its contents.
* Two new editor themes!
* Allow All File Types: Kodex will allow any file to be opened if this setting is enabled. Just be careful as opening binary files might cause unexpected behavior. Kodex will alert you if it thinks you are opening a binary file.
Bugfixes:
* Fixes a glitch which would cause the search bar to show under the title bar after rearranging the editor tabs.
* Fixes issue where tapping "new file" would do nothing if "cancel" had been tapped on the file creation popup.
* Fixes a number of corner case crashes.
* Fixes missing "delete to start of line" action when using more than one caret.
* Fixes glitches where the caret would not move vertically in a predictable manner.
* Fixes typos.
1.1 04/23/2018
Fixes crash when adding extra caret on empty file.
Fixes editor scroll indicators color and position.
Fixes expanding selection to next subword when an extra caret is in the last line.
Fixes extra whitespace being inserted when inserting new line while caret was in the middle of the tabulation (whitespace characters before the first text character).
Fixes typo in Settings view.
New Icon!
1.0.1 03/24/2018
Fixes crash on launch.
more
Version 1.4.2 04/01/2024
Data Not Collected The developer does not collect any data from this app.