When comparing Sublime Text vs NetBeans, the Slant community recommends Sublime Text for most people. In the question“What are the best JavaScript IDEs or editors?” Sublime Text is ranked 4th while NetBeans is ranked 12th. The most important reason people chose Sublime Text is:
Sublime Text is very lightweight by default. Customization occurs on the fly thanks to Package Control.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Lightweight
Sublime Text is very lightweight by default. Customization occurs on the fly thanks to Package Control.
Pro Comfortable to work with
Sublime Text has a minimap on the side that provides a top-down view of the file and keyboard shortcuts for most actions. It also supports a large number of languages and general text editing features out of the box.
Pro Multi-line select and editing
Multiple cursors and column selection allows for versatile ways of editing.ctrl + d
will select the current word and each time the command is repeated, it adds the next occurrence of the word to the selection.ctrl + click
or middle-mouse click
will place another cursor in the place that's clicked. Cursors can then be controlled together. This also permits selecting vertically.ctrl + shift + l
will place a cursor on every highlighted line.
Pro Functionality can be easily extended
Sublime Text uses TextMate's syntax declaration files to support new languages, it has all its menus and keybindings generated from JSON files, and it can be scripted to add new features using Python.
If Sublime Text doesn't support a desired language or feature, it's usually not long before someone implements it themselves - examples include the plugin package manager and the 'open in browser' command.
Pro Beginner-friendly
When you start using Sublime Text, it doesn't drown you in keyboard shortcuts or non-intuitive use-concepts. However, high-level functionality can still be easily accessed when the need for it arises.
Pro Consistent cross-platform
Sublime Text looks consistently the same across Windows, OS X, and Linux.
Pro Fully customizable
Sublime Text allows for all sorts of customization to help users change almost everything in the editor: Key Bindings, Menus, Snippets, Macros, Completions, and many more. Essentially, just about everything in Sublime Text is customizable with simple JSON files. This system gives the user flexibility as settings can be specified on a per-file type and per-project basis.
Pro Very fast
Sublime is quick to start and never slows down. The UI is always responsive and you know what is happening in the background.
Pro Has tons of plugins available
Pro Installable package manager
The package manager is a plugin and can be swapped with something else custom.
Pro IDE features without the cruft
Sublime Text, while being lighter-weight than an IDE, still supports many IDE features.
- Text from the current file is used to provide autocomplete.
- Project Support (folder browsing, scoped history, build-system declarations).
- Refactoring support is emulated through multi-select, project-wide find and replace, and regular expression search.
- Syntax-aware selection and GoTo for quickly jumping to locations in the project.
- Snippets and Macros.
- A Python console for everything else.
Pro Offers Command Palette
Command Palette allows for fuzzy searching all available settings, snippets, etc.
Pro Easy to get started
All you need to do when starting up is to install a package manager and modify user configuration.
Pro Regex commands
Regex commands help describe a certain amount of text.
Pro Customizable keymapping
From menus to commands, assign key maps to almost anything.
Pro Portable settings
Settings are modular and can be shared.
Pro Distraction free editing mode
Distraction free editing takes over your screen and removes every UI element so you can focus on code.
Pro Dynamic Build System
Choose from many build systems or craft your own.
Pro Freemium
A Sublime license can be bought but it can still be used for free. However, a pop-up appears when you save multiple times.
Pro Permits instant file switching
Open Goto Anything by pressing Ctrl or Command + P and by using fuzzy search you can look for a file in your project. The file will load even without pressing enter, so you can make sure you've found the correct file without committing.
Pro Multiple languages are supported
Pro Haxe and OpenFL integration via plugin
Both of these programming interfaces are cross-platform, open source, and easy to use.
Pro Direct server upload
Provides command line shortcut for server upload.
Pro Projects support multiple folders and git repos
Pro Allows for Vim-style editing
Vintage mode is Vim-style editing that's already built into the text editor.
Pro Support for TextMate themes and window decoration themes
Sublime Text compatibility with Textmate bundles is good, but excludes commands, which are incompatible. In general, Sublime Text syntax definitions are compatible with Textmate language files (.tmLanguage extension).
Pro Highly Theme-able
Create your own theme with online editor.
Pro Functionalities
With lot of functionalities, where other editor even not think to provide.
Pro Free, open source, and cross-platform
NetBeans is a free, GPL-licensed IDE. It can run on any computer with a Java virtual machine. If a computer has a Java virtual machine (JVM), Netbeans can run on it. Netbeans can, therefore, run on a variety of operating systems such as Windows, *nix, and Mac OS. Being open source means that developers can contribute changes to the code to have the IDE better serve them.
Pro Multiple revision control system integration
Has built-in support for the most popular revision control systems
Pro FTP/SFTP synchronization
Supports synchronization with projects stored remotely through FTP or SFTP.
Pro Linux terminal inside IDE
You can run Linux terminal inside the IDE.
Pro Best for PHP, HTML5 Apps Developemt
Pro Frameworks support
Supports Symfony1, Symfony2,Yii2 & Zend frameworks.
Pro You can access source code history
There's a built-in local history that lets you compare code changes and revert to a specific revision. Helpful when source code file accidentally overwritten.
Pro PHPUnit support
PHPUnit is a testing framework. You can create test classes, run and see the code coverage directly from IDE interface.
Pro Git commits/local diff comparison is best
Git commits/local diff comparison is best
Pro Supports community plugins
NetBeans can be extended beyond the basic tool that you get out of the box through community made custom plugins.
Pro Accelerated HTML5 development support
Pro Less and Sass Compiler support
Pro Composer commands inside IDE
The most used composer commands can be done directly from IDE.
Pro Bower support
Pro Powerful debugging and performance optimization
Netbeans not only debugs your code, and points out errors but also gives you hints on which sections of your code could be further optimized.
Pro Supports Smarty
Supports Smarty Template Engine right out of the box.
Pro Refactoring is easy and very productive
Pro JMeter benchmarking tool support
Pro Supports Twig templates
NetBeans provides code completion and documentation for all Twig elements.
Pro ApiGen and PHPDoc support
Supports documentation generation through ApiGen and PHPDoc.
Pro PHPstan support
Supports static code analysis with phpstan
Pro ApiGen support
ApiGen allows automatically generating documentation from specifically formatted comments. It's easy to use, supports traits, allows fuzzy searching for classes and highlighting docblocks using Markdown.
Cons
Con Paid
Although paying for something good is far from a Con, having the competition this editor has and still have to pay for it is definitely a Con.
Con Proprietary
Sublime Text protects and copyrights its code and is thus not the freedom-ware some would like it to be.
Con Interruption while work
"Purchasing" messages box interrupts while saving file.
Con No printing of files
Sublime Texts offers no way of printing the files it edits.
Con Not a full IDE
It does not necessarily function on a project level.
Con Annoying whitespace management
All too often it does the wrong thing with indentation on otherwise blank lines.
Con Loading big files on Windows is slow
Here's a rough comparison: a 70 MB file takes about 2 seconds to load in Notepad++, whereas the same file in ST3 takes over 10 seconds to load.
Con No toolbar
Sublime Text is more focused on keyboard users, meaning it doesn't come with a tool bar. Even plugins can't toggle bookmarks using the mouse.
Con Slow development
While development has yet to stop on Sublime Text, it is significantly slower than its competitors Atom, VSCode, and others.
Con Inadequate language support
Sublime Text offers poor support for Far-East languages in Linux.
Con No RTL Support
Although it is a "text" editor, Sublime Text does not support rendering text written in Arabic or other right to left languages. The developers seems unwilling to fix this issue any time soon.
Con Often crashes due to poor quality plugins
Some plugins are quite buggy, meaning that installing many can become quite a problem regarding stability.
Con Slows down occasionally
The Netbeans IDE is known to take a large memory as compared to other lighter IDE's available on the market. Slowdowns can decrease productivity and cause frustration.
Con Development has stalled dramatically
It went down from two releases a year with minor bug-fix releases to one release and no fixes. There seem to be fewer features added per release as well. There is no activity in the plugin community.
Con Default website code format is too strict
Sometimes you need to write allowed code that IDE hasn't spected, and it will annoy you filling all your code with suggestions.
Con Multilanguaje code completion fails
I example, sometimes code completion won't help you with html marks (or scripts) inside php echo (or print) sentences, and vice-versa.