CodeMirror聽vs聽Sublime Text

Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

CodeMirror
CodeMirror

198
60
+ 1
7
Sublime Text
Sublime Text

11.3K
8.7K
+ 1
3.8K
Add tool

CodeMirror vs Sublime Text: What are the differences?

Developers describe CodeMirror as "In-browser code editor used in the dev tools for both Firefox and Chrome, Light Table, Adobe Brackets, Bitbucket, and many other projects". CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the language you are coding in, it will color your code, and optionally help with indentation. On the other hand, Sublime Text is detailed as "A sophisticated text editor for code, markup and prose". Sublime Text is available for OS X, Windows and Linux. One license is all you need to use Sublime Text on every computer you own, no matter what operating system it uses Sublime Text uses a custom UI toolkit, optimized for speed and beauty, while taking advantage of native functionality on each platform..

CodeMirror and Sublime Text belong to "Text Editor" category of the tech stack.

Some of the features offered by CodeMirror are:

  • Support for over 60 languages out of the box
  • A powerful, composable language mode system
  • Autocompletion (XML)

On the other hand, Sublime Text provides the following key features:

  • Goto Anything
  • Multiple Selections
  • Command Palette

"Integrable in your application" is the primary reason why developers consider CodeMirror over the competitors, whereas "Lightweight" was stated as the key factor in picking Sublime Text.

CodeMirror is an open source tool with 17.8K GitHub stars and 3.91K GitHub forks. Here's a link to CodeMirror's open source repository on GitHub.

OpenTable, AdRoll, and GoSquared are some of the popular companies that use Sublime Text, whereas CodeMirror is used by Flurry, Treehouse, and Jumplead. Sublime Text has a broader approval, being mentioned in 1399 company stacks & 1309 developers stacks; compared to CodeMirror, which is listed in 24 company stacks and 11 developer stacks.

- No public GitHub repository available -

What is CodeMirror?

CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the language you are coding in, it will color your code, and optionally help with indentation.

What is Sublime Text?

Sublime Text is available for OS X, Windows and Linux. One license is all you need to use Sublime Text on every computer you own, no matter what operating system it uses. Sublime Text uses a custom UI toolkit, optimized for speed and beauty, while taking advantage of native functionality on each platform.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose CodeMirror?
Why do developers choose Sublime Text?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use CodeMirror?
    What companies use Sublime Text?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with CodeMirror?
    What tools integrate with Sublime Text?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to CodeMirror and Sublime Text?
    Ace
    Ace is a standalone code editor written in JavaScript. Our goal is to create a browser based editor that matches and extends the features, usability and performance of existing native editors such as TextMate, Vim or Eclipse. It can be easily embedded in any web page or JavaScript application.
    TinyMCE
    It is the most advanced WYSWIYG HTML editor designed to simplify website content creation. The rich text editing platform that helped launch Atlassian, Medium, Evernote, and more.
    Visual Studio Code
    Build and debug modern web and cloud applications. Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.
    Vim
    Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set. Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems. Vim is distributed free as charityware.
    Atom
    At GitHub, we're building the text editor we've always wanted. A tool you can customize to do anything, but also use productively on the first day without ever touching a config file. Atom is modern, approachable, and hackable to the core. We can't wait to see what you build with it.
    See all alternatives
    Decisions about CodeMirror and Sublime Text
    Jerome Dalbert
    Jerome Dalbert
    Senior Backend Engineer at StackShare | 12 upvotes 69.3K views
    Sublime Text
    Sublime Text
    Vim
    Vim
    Atom
    Atom
    Visual Studio Code
    Visual Studio Code
    #TextEditor

    I liked Sublime Text for its speed, simplicity and keyboard shortcuts which synergize well when working on scripting languages like Ruby and JavaScript. I extended the editor with custom Python scripts that improved keyboard navigability such as autofocusing the sidebar when no files are open, or changing tab closing behavior.

    But customization can only get you so far, and there were little things that I still had to use the mouse for, such as scrolling, repositioning lines on the screen, selecting the line number of a failing test stack trace from a separate plugin pane, etc. After 3 years of wearily moving my arm and hand to perform the same repetitive tasks, I decided to switch to Vim for 3 reasons:

    • your fingers literally don鈥檛 ever need to leave the keyboard home row (I had to remap the escape key though)
    • it is a reliable tool that has been around for more than 30 years and will still be around for the next 30 years
    • I wanted to "look like a hacker" by doing everything inside my terminal and by becoming a better Unix citizen

    The learning curve is very steep and it took me a year to master it, but investing time to be truly comfortable with my #TextEditor was more than worth it. To me, Vim comes close to being the perfect editor and I probably won鈥檛 need to switch ever again. It feels good to ignore new editors that come out every few years, like Atom and Visual Studio Code.

    See more
    Johnny Bell
    Johnny Bell
    Senior Software Engineer at StackShare | 17 upvotes 91.3K views
    Git
    Git
    Prettier
    Prettier
    Visual Studio Code
    Visual Studio Code
    PhpStorm
    PhpStorm
    Sublime Text
    Sublime Text
    Magento
    Magento
    #Frontend
    #PHP

    I've been in the #frontend game for about 7 years now. I started coding in Sublime Text because all of the tutorials I was doing back then everyone was using it. I found the speed amazing compared to some other tools at the time. I kept using Sublime Text for about 4-5 years.

    I find Sublime Text lacks some functionality, after all it is just a text editor rather than a full fledged IDE. I finally converted over to PhpStorm as I was working with Magento and Magento as you know is mainly #PHP based.

    This was amazing all the features in PhpStorm I loved, the debugging features, and the control click feature when you click on a dependency or linked file it will take you to that file. It was great.

    PhpStorm is kind of slow, I found that Prettier was taking a long time to format my code, and it just was lagging a lot so I was looking for alternatives. After watching some more tutorial videos I noticed that everyone was using Visual Studio Code. So I gave it a go, and its amazing.

    It has support for everything I need with the plugins and the integration with Git is amazing. The speed of this IDE is blazing fast, and I wouldn't go back to using PhpStorm anymore. I highly recommend giving Visual Studio Code a try!

    See more
    Sublime Text
    Sublime Text
    Atom
    Atom

    I used to be a hardcore fan of Sublime Text. I am not a coder so I only use it for quick scripts or to play around. I don't spend hours and hours a day within Sublime Text though. However, last year (2017) a colleague, a developer, showed me Atom - a game changer. Love the customisation and overall feel while coding. Again, I am not spending hours a day within but I've noticed I've spent more time playing around and coding stuff since i've moved to Atom.

    See more
    Julian Sanchez
    Julian Sanchez
    Lead Developer at Chore Champion | 8 upvotes 38.2K views
    atChore ChampionChore Champion
    Visual Studio Code
    Visual Studio Code
    Git
    Git
    Sublime Merge
    Sublime Merge
    Visual Studio Live Share
    Visual Studio Live Share
    Atom
    Atom
    Sublime Text
    Sublime Text

    We use Visual Studio Code because it allows us to easily and quickly integrate with Git, much like Sublime Merge ,but it is integrated into the IDE. Another cool part about VS Code is the ability collaborate with each other with Visual Studio Live Share which allows our whole team to get more done together. It brings the convenience of the Google Suite to programming, offering something that works more smoothly than anything found on Atom or Sublime Text

    See more
    Visual Studio Code
    Visual Studio Code
    Atom
    Atom
    Sublime Text
    Sublime Text

    I use Visual Studio Code because it is a super flexible code editor that can be customized to function like a full IDE. It has great git and terminal integrations out of the box compared to Atom and Sublime Text

    It has so many extensions and boots up pretty fast even with all my extensions.

    Feel free to checkout my settings: VS Code Settings

    See more
    Gustavo Mu帽oz
    Gustavo Mu帽oz
    Web UI Developer at Globant | 3 upvotes 33.5K views
    Visual Studio Code
    Visual Studio Code
    Atom
    Atom
    Sublime Text
    Sublime Text
    Vim
    Vim
    Notepad++
    Notepad++
    React
    React
    Flutter
    Flutter
    TypeScript
    TypeScript
    #RESTfulAPI
    #Microsoft

    I have chosen Visual Studio Code after testing a lot of other editors like Atom, Sublime Text (with legal license), Vim or even Notepad++ because it is the sum of all their virtues and none of their defects. It's fast, it has all the tools and plugins I need to work, and it's pretty and very good optimized. It has what I need to work and nothing more. And the main plugins works like a charm. Developing for React or Flutter is amazing. Even the TypeScript plugin works great. I like how IntelliSense works, and all the extra tools to code remotely using #ssh, access #RESTfulAPI or event manage projects or collaborating remotely. Thanks #Microsoft for Visual Studio Code.

    See more
    Labinator Team
    Labinator Team
    at Labinator | 13 upvotes 89.1K views
    atLabinatorLabinator
    HTML5
    HTML5
    CSS 3
    CSS 3
    Sass
    Sass
    Vanilla.JS
    Vanilla.JS
    PHP
    PHP
    WordPress
    WordPress
    Sublime Text
    Sublime Text
    Visual Studio Code
    Visual Studio Code
    Manjaro
    Manjaro
    Debian
    Debian

    At labinator.com, we use HTML5, CSS 3, Sass, Vanilla.JS and PHP when building our premium WordPress themes and plugins. When writing our codes, we use Sublime Text and Visual Studio Code depending on the project. We run Manjaro and Debian operating systems in our office. Manjaro is a great desktop operating system for all range of tasks while Debian is a solid choice for servers.

    WordPress became a very popular choice when it comes to content management systems and building websites. It is easy to learn and has a great community behind it. The high number of plugins as well that are available for WordPress allows any user to customize it depending on his/her needs.

    For development, HTML5 with Sass is our go-to choice when building our themes.

    Main Advantages Of Sass:

    • It's CSS syntax friendly
    • It offers variables
    • It uses a nested syntax
    • It includes mixins
    • Great community and online support.
    • Great documentation that is easy to read and follow.

    As for PHP, we always thrive to use PHP 7.3+. After the introduction of PHP 7, the WordPress development process became more stable and reliable than before. If you a developer considering PHP 7.3+ for your project, it would be good to note the following benefits.

    The Benefits Of Using PHP:

    • Open Source.
    • Highly Extendible.
    • Easy to learn and read.
    • Platform independent.
    • Compatible with APACHE.
    • Low development and maintenance cost.
    • Great community and support.
    • Detailed documentation that has everything you need!

    Why PHP 7.3+?

    • Flexible Heredoc & Nowdoc Syntaxes - Two key methods for defining strings within PHP. They also became easier to read and more reliable.
    • A good boost in performance speed which is extremely important when it comes to WordPress development.
    See more
    Interest over time
    Reviews of CodeMirror and Sublime Text
    Avatar of Shivafeb17
    Senior Web Developer at Adjetter Media Network Pvt Ltd
    Review ofSublime TextSublime Text

    There are many Text Editors and IDEs available for PHP. Sublime Text is the best of all. Super lite-weight.

    How developers use CodeMirror and Sublime Text
    Avatar of Ana Phi Sancho
    Ana Phi Sancho uses Sublime TextSublime Text

    Self taught : acquired knowledge or skill on one's own initiative.Switching between projects is also lightning fast. Clean interface, quick startup, superb flexibility and powerful features. Platform: OSX 10.8 or later, Windows 7 & 8, Linux

    Avatar of Dan Ward
    Dan Ward uses Sublime TextSublime Text

    My favorite code editor. So much power and elegance in one package, and more plugins than you can shake a stick at! And the Package Control package manager makes it easy to keep up with them all.

    Avatar of A. M. Douglas
    A. M. Douglas uses Sublime TextSublime Text

    It's simple and very malleable. You can use it anywhere. You can customise it to behave as you want it to behave, look as you want it to look. And you can use it on any desktop operating system.

    Avatar of David Flynn
    David Flynn uses Sublime TextSublime Text

    We use this as it has some great text editing capabilities and a real time saver for when working on various data related tasks. This is simply a great text editor.

    Avatar of Cooperative Computing
    Cooperative Computing uses Sublime TextSublime Text

    We found Sublime Text as the best text editor on the web. It's fast, reliable, cheap and have tons of extensions available with a big supportive community.

    Avatar of Postverta Inc.
    Postverta Inc. uses CodeMirrorCodeMirror

    It is the basis of our in-browser editor. Highly customizable with an extensive set of plugins.

    How much does CodeMirror cost?
    How much does Sublime Text cost?
    Pricing unavailable
    Pricing unavailable
    News about CodeMirror
    More news