Code icon

Code

elementary, Inc.

The editor that works for you

Whether you're writing in Markdown or managing a complex app codebase, Code is the lightweight but full-featured editor for you. It auto-saves your files to ensure they're always up-to-date, and it remembers your tabs so you never lose your spot—even between sessions.

Designed around a project-based workflow, Code knows about your separate codebases. It comes with helpful Git integration to create and switch between branches and show changed files and lines within your projects.

Work with your language: whether you're crafting code in Vala, scripting with PHP, or marking things up in HTML, Code has you covered. Experience full syntax highlighting with nearly all programming, scripting, and markup languages.

Find anything in your current file, specific folders, or your whole project with options for case-sensitivity and regular expressions.

Smart features throughout: automatic indentation, smart cut/copy behavior, visible whitespace for selected text and at the end of lines by default, and optional extensions for Markdown actions, spell checking, whitespace trimming, word completion, and more.

Adapt Code to your workflow: you can tweak the behavior and interface as needed with a handful of useful and well-considered extensions and preferences.

There's a ton more:

Get it on AppCenter

Get Code and more on elementary AppCenter, the open, pay-what-you-can app store for indie developers. Every app is open source and has been reviewed and curated by elementary to ensure a native, privacy-respecting, and secure experience.

What's New:

6.2.0 – Apr 1, 2022

Improvements:

  • The current document filename is now shown as the window title in multitasking view
  • Hidden folders are now shown in the project sidebar
  • The currently selected result and the number of results is displayed while searching
  • The search bar now has a regular expression mode

Fixes:

  • It is now possible to change Git branch with untracked files present in a project
  • Crashes are prevented while searching in large projects
  • The correct document is now focused after opening Code from an external program
  • Line duplication is now actioned correctly if there is no selection present
  • Code no longer crashes when asked to open an unknown URI format

Minor updates:

  • Updated translations
6.1.0 – Nov 23, 2021

Improvements:

  • Projects with the same name now include their parent folder name as well
  • When scrolling to search results, overshoot slightly for better visibility
  • Use the FileChooser portal instead of the one from GTK
  • Center the global search dialog over the main Code window

Fixes:

  • Fix visibility of Terminal button on Welcome page
  • Fix some keyboard shortcuts affecting unfocused Document instead of focused Terminal
  • Close Terminal if shell exited and create new Terminal if re-opened with no shell

Minor updates:

  • "Visible whitespace" combobox is now a switch
  • Updated translations
6.0.1 – Aug 28, 2021

Fixes:

  • Fix crash when creating new window from tab drop
  • Ensure files created from the sidebar are automatically opened

Improvements:

  • Hide project chooser button when hiding sidebar

Minor updates:

  • Ensure all copy is translatable
  • Updated translations
6.0.0 – Jul 15, 2021

New features:

  • New Markdown plugin for WYSIWYG-like editing.
  • Switch Git branches or create new ones in project folder context menus
  • Show Git diff status in source view gutters
  • Full text search within project folder.
  • Save and restore cursor position between sessions
  • Close files from a project when that project is closed
  • Show full file path in tab tooltips
  • Clear lines with Ctrl + K

Minor updates:

  • Allow Spell Checker extension in Markdown files
  • Improve multi-line duplication
  • Remember whether the sidebar is open
  • Set window title to the focused file
  • Add keyboard shortcuts for next and previous documents
  • Show full document path in tab tooltip
  • Update Pastebin plugin
  • Correctly indent last line when using the preserve whitespace plugin
  • Keep syntax highlighting when duplicating a file
  • Expand a collapsed folder if you attempt to open it twice
  • Fix an issue where searches are lost when Code loses focus
  • Start Vim plugin in command mode
  • Fix and add new Vim commands
  • Show project folders with a hidden root folder
  • Allow launching with pkexec and disallow launching with sudo
  • Remove split view
  • Remove browser preview
  • Updated translations
3.4.1 – Jun 9, 2020

Fixes:

  • Fix empty sidebar layout, ensuring folders can always be added

Minor updates:

  • Scroll past the end of a file
  • More efficiently save and restore window position
  • Updated translations
3.4.0 – Apr 1, 2020

New features:

  • Include Git status in file tooltips
  • Option for explicit case-sensitive Find

Other updates:

  • Correctly show Toggle Comment menu item when no text is selected
  • Fixed font switch alignment
  • Updated translations
3.3.0 – Feb 29, 2020

New features:

  • New "Close Other Folders" menu item to help clean up your sidebar
  • Save and restore cyclic search setting

Other updates:

  • Add keyboard shortcuts to menu items
  • Make sidebar folder items not selectable
  • Center new windows
  • Updated translations
3.2.0 – Jan 9, 2020

New features:

  • Visually deprioritize .gitignored files in project sidebar
  • Smart cut/copy lines with no active selection
  • Add a confirmation dialog to the "Restore" action
  • Add "Open In" menu to the top-level folder in the folder manager
  • Don't show temporary files in the folder manager
  • Add brackets completion and auto-indent by default
  • Zoom terminal plugin with keyboard
  • Honor global privacy setting when saving and restoring

Other updates:

  • Simplify "Draw spaces" preference
  • Fix the keyboard shortcut for going backwards in search results
  • Fix opening files from relative paths in Terminal
  • Fix null file dialog when opening a new window via the dock
  • Add "=" as a zoom key
  • Change search entry icon when results aren't found
  • Enter name of new file before creating it
  • Updated translations
3.1.1 – Mar 6, 2019
  • Use Granite.MessageDialog throughout
  • Include non-text files in sidebar
  • Fix Remove Current View
3.1.0 – Mar 6, 2019
  • Fix New Window desktop action behavior
  • Properly synchronize Ctrl+N key presses with number of new documents spawned
  • Build system fix for editorconfig dependency
  • Add Change Branch context menu item
  • Avoid possible startup crash related to how plugins load
  • Updated translations
3.0.2 – Jan 3, 2019
  • Smarter file saving behavior
  • File saving fixes
  • Don't add temporary files to tab restore
  • Updated translations
3.0.1 – Nov 30, 2018
  • Don't recreate deleted files when restoring session
  • Restore line wrap preference
  • Add accel tooltips
  • Minor bug fixes
  • Updated translations
3.0 – Oct 16, 2018
2.4.1 – Feb 20, 2017