Why do I need a text editor?
I earn a living writing the code. I want to make my programming workflow as smooth as possible. I used several IDE's and text editors and I usually wasn't happy about my productivity and comfort during writing and developing.
Sophisiticated IDE's usually try to do too much and they aren't perfect in what they're doing. I used to develop on JVM and I used Netbeans, Intellij Idea and Eclipse and had problems on all of them. Some where rather tough and took a lot of my time. I agree that smart IDE's can be really helpful - especially with java - handling all dependecies, running your tests and app, and suggesting you what should you write - autocompletion, spotting your coding errors. It makes your life somewhat easier, but can make you pretty stupid. You can program and don't care about errors, just looking if there is something red there. You shouldn't! And running your code only in your ide separates you from your OS, which isn't good at all.
There is a simpler alternative - text editors. Let's begin with the best known ones - vim and emacs. I like Vim, but I never mastered it. Emacs scares me out. Maybe I'll give it a try one day. But not know - know I just want to write text.
Sublime text is a text editor for coders - but it's also very good for general purpose writing. I write this blogpost in it! I also write some latex here.
It's probably the first plugin you should install in your Sublime Text editor - if you haven't - go on this page and do it now, you won't regret.
It makes easy organizing your plugins. After installing type: 'Ctrl+Shift+P inst [tab]' and browse lots of available packages. Plugins in sublime text are pretty cool.
The most important shortcuts in sublime starts with control key:
- Ctrl+Shift+P - command prompt
- Ctrl+P - go to any file (just type some words you are looking for in filepath)
- Ctrl+F - find in open file
- Ctrl+Shift+F - find in all files - opens file with results - snippets with line numbers you can just click and they redirect you to file with text you wanted to find
- Ctrl+G - go to line
- Ctrl+R - go to definition
- Alt+Number - switching between tabs
Have you written your snippets already?
Snippets are small amounts of code you can write by triggering a trigger, they're great if you using some code over and over again like: "import ipdb; ipdb.set_trace()".
They are really easy to use, and you can use snippets written by somebody else to - I have lots of installed html snippets.
That's all for now. I wouldn't recommend installing too many plugins at once, because they can cause real problems with your editor - such as sudden segmentation faults or hanging.,