When comparing Emacs vs PyCharm Professional Edition, the Slant community recommends Emacs for most people. In the question“What are the best JavaScript IDEs or editors?” Emacs is ranked 9th while PyCharm Professional Edition is ranked 19th. The most important reason people chose Emacs is:
Emacs can be controlled entirely with the keyboard. While true, I often find the mouse and menus handy for those lesser-used commands. An aide-memoir.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Keyboard-focused, mouse-free editing
Emacs can be controlled entirely with the keyboard. While true, I often find the mouse and menus handy for those lesser-used commands. An aide-memoir.
Pro Total customizability
Customizations can be made to a wide range of Emacs' functions through a Lisp dialect (Emacs Lisp). A robust list of existing Lisp extensions include the practical (git integration, syntax highlighting, etc) to the utilitarian (calculators, calendars) to the sublime (chess, Eliza).
Pro It's also an IDE
You can debug, compile, manage files, integrate with version control systems, etc. All through the various plugins that can be installed.
Pro Works in terminal or as a GUI application
You can use Emacs' command line interface or graphical user interface.
Pro Self documenting
Emacs has extensive help support built-in as well as a tutorial accessed with C-h t.
Pro Free
Licensed under GNU GPL.
Pro Great documentation
With 30+ years of use the Emacs documentation is very thorough. There are also a lot of tutorials and guides written by third parties.
Pro Vi keybindings through Evil mode
Evil mode emulates vim behaviors within Emacs. It enables Vi users to move inside the Emacs universe.
Pro Provides org-mode
Advanced planning and publication which can start as a simple list.
Pro Enormous range of functionalities (way beyond simple "text editing")
Through its programmability, a very broad range of functionalities can be integrated in emacs, turning it even into a "single point of contact" with the underlying operating system.
Pro Cross-platform
Works on Linux, Windows, Macintosh, BSD, and others.
Pro Integrates planning in your development process
You can jump straight from your org-mode files to programming tasks - and back - and build a seamless workflow.
Pro Versatile
Emacs is great for everything.
Pro Mini buffer
You can pass complicated arguments in the mini buffer.
Pro Ubiquity
Fully compliant GNU-emacs is available on many platforms, and they all understand .emacs configuration files.
Pro Rectangular cut and paste
Emacs can select rectangularly.
Pro Lisp customizations
With lisp customization, any behavior of Emacs can be changed. Update with pre-release patch can be also applied without recompiling the whole Emacs.
Pro Visual selection and text objects with Evil
Evil is an extensible vi layer for Emacs. It provides Vim features like Visual selection and text objects.
Pro dabbrev-expand (Alt-/)
Dynamic word completion.
Pro Support multi-line editing, multiple frame, powerful paren, crazy jumping style
Review the "Emacs Rocks" video.
Pro Has been widely used for a long time
The first verion of Emacs was written in 1974 and GNU Emacs in 1984.
Pro Helm plugin adds even more power to Emacs
Powerful commands, search, and more with the Helm plugin.
Pro GTK+ widgets support
Since version 25 you can run GTK widgets inside Emacs buffers. One of these is the WebKitGTK+, which allows the user to run a full-featured web browser inside Emacs with JavaScript and CSS support among other things.
Pro Excelent tutorial to get you started
The tutorial you are presented with at startup shows you exactly what you need to get started and teaches you how to use the built-in help yourself later.
Pro Interactive Shells
Emacs has a number of shell variants: ansi-term, shell, and eshell.
Pro Emacs provides magit, the best and most complete GIT interface
Complex git history editing become a breeze with very few keystrokes. And simple ones are quickly stashed in muscle memory. Git becomes an direct extension of your brain thanks to Magit. Cherrypicking, blaming, resetting, interactive rebasing, line level commit, spinoff branches... you name it, magit already has it and has typically all those 5 to 10 git CLI commands of higher-level patterns also tide to one simple shortcut (want to amend a commit three commits away ? forgot to branch out and you've got already N commits on master
? ... etc... ).
Pro Gnus
Managing several large mailing lists has never been easier using Gnus. The threading commands and the various ways of scoring articles means that I never miss important messages/authors, etc. A joy to use.
Pro Eshell is cross platform
You can use the underlying operating system shell as a terminal emulation in an Emacs buffer. Don't like the default shell for your configuration? You can change it to your liking.
Pro Excellent Lisp editing support
Built-in packages make editing Lisp source code feel natural.
Pro Use-package and org-mode
Missing some neural package that predicts actions, maybe in the next release ...
Pro Version control integration
PyCharm has CVS, Git, Subversion and Mercurial integration.
Pro Catches run-time information when running the code
PyCharm can leverage run-time information when running your application with the built-in debugger to figure out what types can possibly be passed to which functions, etc.
Pro One of the best autocompletion engines around
PyCharm has two types of autocompletion: structural completion and word expansion.
Structural autocompletion makes predictions based on its understanding of Python and JavaScript objects, while the latter tries to predict the word currently being typed based on previously typed words. Word expansion also works in comments and docstrings and it's similar to vim's omnicompletion.
Both types of autocompletion work extremely well, have little to no problems and are quite fast even when loading suggestions on the go.
Pro Great pip support
PyCharm offers great pip integration. When opening a project it automatically checks for a requirements.txt
file in the root of the project. If it's found, it checks if all the libraries are available in the interpreter. If one or more libraries are missing, it issues a warning and asks whether you want to install any missing libraries.
Pro Free version available
There's a community edition (with limited features) that's free to use. You can also get a 30-day trial of the Professional edition.
Pro Excellent integration with debugging tools
All the debugging can be done inside the IDE. Breakpoints in the code can be added using keyboard shortcuts or the mouse. When the code is executed through the debugger a toolbar pops up with all the relevant context needed for the debugging process.
The whole process is smooth and painless and you don't even have to switch windows to do the debugging.
Pro Excellent refactoring support
There are many refactoring options including renaming and changing signature across entire projects. It also includes the an ability to preview changes before committing and exclude anything unwanted.
Pro Free student access to Professional Edition
With a valid .edu address students can register to use the Professional edition and enjoy all the perks of the full paid version for free.
Though it should be mentioned that the with the free student acess you cannot use PyCharm for any commercial purposes, even accepting donations for an open source project.
Pro Vim mode for people used to Vim commands
IdeaVim supports motion keys, insert mode commands, marks, registers, visual mode commands, vim regexps, key mapping, macros, digraphs, some ex and :set commands. You can find a full comparison in the IdeaVim reference manual.
Pro Great for navigating large codebases
PyCharm has amazing code navigation implementations. It supports both goto symbol and goto declaration. The former finds classes, variables, functions, etc by name. While the latter is used by moving the cursor on top of a symbol and by using the mouse or a keyboard combination it finds the declaration of that symbol and takes you there.
Both of these features are extremely helpful when consulting large code-bases and when trying to understand an API written by someone else.
Pro Automatically figures out what test to run based on the method the cursor rests at a given time
PyCharm, based on what method or class the cursor rests, can figure out what tests to run and perform them with a keyboard shortcut or two, without breaking up the flow and need to switch to a command line interface.
Pro Built-in Django support
Pycharm has excellent django support, from templating to management commands, it has it all.
Pro Easy to optimize code with built-in profiling tools
If you have a yappi profiler installed on your interpreter, PyCharm starts the profiling session with it by default, otherwise it uses the standard cProfile profiler.
Pro Remote debugging over ssh coupled with automatic deployment creates a streamlined workflow
The professional version allows remote debugging over ssh, which together with automatic deployment creates a streamlined workflow.
Pro Supports installing third party libraries
No need to go to the command line to download a new package, PyCharm has an easy system to browse, download, and update third party packages.
Pro Has a lot of plugins
PyCharm offers a high variety of plugins like Pylin, Mypy etc. covering all the above mentioned. Plus it has a built-in support to detect wrong formatted/named things (inspection).
Pro Amazing direct database integration
Pycharm supports SQLlite, PostgresQL, Mysql, etc out of the box and is integrated very nicely with Pycharm. Making database modifications could never have been easier as changing a cell value and committing the changes straight from pycharm.
Pro Sophisticated static analysis tools
Cons
Con Learning curve is long
While it's better than it used to be, with most functions being possible through the menu, Emacs is still quite a bit different from your standard editor. You'll need to learn new keyboard shortcuts.
Con Sometimes the extensibility can distract you from your actual work
If I ever want to lose half a day, I'll start by tweaking my .spacemacs config file.
Con Keyboard combinations can be confusing for new users
For example, for navigation it uses the b, n, p, l keys. Which for some people may seem strange in the begging. However they can be changed easily.
Con Documentation is not beginner-friendly
Although lots of good built-in documentation _exists_, I have after four years of Emacs as my primary editor not figured out how to actually make use of it, and rely completely on Google / StackOverflow for help.
Con User interface is terrible
I was using Emacs in the early 1980's, before there were GUIs. In fairness to Emacs, its original design was conceived in that context and is rather good at some things, like flexible ability to bind commands to keyboard shortcuts. Unfortunately, it didn't keep up with the times and fails to take advantage of the entire world of GUI design that's revolutionized computer science since then. So Emacs does 5% or what an editor should do quite will, and is surprisingly under-powered and old fashioned at the other 95%. To this day, it lacks or struggles with very basic things, like interactive dialogs, toolbars, tabbed interface, file system navigation, etc., etc. The things I just mentioned, are all present in some limited and inept form, but falls far short of current standard of good user interface design. For this reason, I would not recommend Emacs to anyone who is under 50 year old, or who needs power user capabilities. For casual, unsophisticated applications by someone who grew up with green screen character based computers, it's probably OK.
Con Emacs lisp is very poorly designed
The language that's used for user customization, extensions, and for much of the basic editor functionality, is Emacs lisp, or elisp for short. I actually like lisp in general, especially Scheme, but unfortunately, elisp is one of the worst versions of lisp ever created, barely meriting being called lisp. It's very slow, impoverished in features, inconsistent, and rather inelegant in design. Elisp needed to be overhauled 20 or 30 years ago, but the Emacs developers were not willing to do the work. I believe this is one of the major reasons Emacs is so buggy, lacking in features, development is so slow, and consequently almost nobody uses it (or should use it) anymore.
Con Very poorly maintained
It's not clear to what extent Emacs is still supported. There's still some development taking place, but so slow that it's almost an abandoned project. There are numerous bugs in Emacs, many these days associated with start up and package management. When you search the Internet for solutions, you often find many posts, sometimes going back months or even years, with no clear fix.
Con Hard customization
For customization, you need to learn Lisp.
Con A lot of jokes in this serious software
Con Using Emacs on a new machine without your .emacs file
Con Very high memory usage
Memory usage is usually anywhere around 1-2GB and possibly larger with larger projects
Con Not suitable to edit project's files written in other languages
There is a high variety of support for a lot of languages like markdown etc. Not for Java and so on, but it is a Python IDE.
Con Some relatively basic functionality requires paid license
JavaScript, CoffeeScript, TypeScript, HTML/CSS, SQL requires a paid license. Also, all Python frameworks require a paid license.
Con Odd Autosave "feature", can't be disabled fully
PyCharm automatically saves your files for you, always, without telling you. You can't disable this. There's a way to indicate if a file has been modified via an indicator in the tab (not enabled by default - why?).
If you exit it won't ask you if you want to save the modified file. Totally unintuitive and contrary to all other established workflows. It's ok to try something new, but give users the option to have the "normal" behaviour of any other IDE/editor out there. Can be a deal breaker for those that need to know/have control over when they save their files. (PyCharm offers a history to undo the automatic save, but why force a user to undo something with extra steps that shouldn't have happened in the first place?)
Con Not possible to run scripts in a single console
Con It cannot reindex on the fly packages installed from git source
If you've installed a package with the command:
pip install -e git+https://pass@github.com/me/package.git@0.0.3#egg=package
you have two options available to make PyCharm update/see it:
- restart PyCharm
- invalidate caches
Con Asinine licensing scheme
JetBrains licensing, especially if you have multiple products, is a blocker. You just can't have a fixed line-item price (for departmental budgeting) for their licenses.
Con Vim mode is limited
Con Rendering is awful
Con Little native desktop integration
If you use Linux with Gnome or KDE, PyCharm does relatively little to integrate into your local desktop environment