Building a CDT-base editor, Part 5: Using PDOM

This article, fifth in a five part “Building a CDT-based editor” series, shows how the C/C++ Development Tooling (CDT” performs code completion. Learn to understand how the CDT performs code completion. This is one of the CDT's most useful capabilities because it reduces the amount of code the user needs to type and remember.
Other Popular Open Source Articles
- Five Common PHP design patterns(10K reads)
- Developing PHP the Ajax way(9K reads)
-
- Login or register to post comments
Printer-friendly version
- 1821 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
Microsoft Linuxwashing and Research Openwashing
| today's howtos |
Why Everyone should know vimVim is an improved version of Vi, a known text editor available by default in UNIX distributions. Another alternative for modal editors is Emacs but they’re so different that I kind of feel they serve different purposes. Both are great, regardless.
I don’t feel vim is necessarily a geeky kind of taste or not. Vim introduced modal editing to me and that has changed my life, really. If you have ever tried vim, you may have noticed you have to press “I” or “A” (lower case) to start writing (note: I’m aware there are more ways to start editing but the purpose is not to cover Vim’s functionalities.). The fun part starts once you realize you can associate Insert and Append commands to something. And then editing text is like thinking of what you want the computer to show on the computer instead of struggling where you at before writing. The same goes for other commands which are easily converted to mnemonics and this is what helped getting comfortable with Vim. Note that Emacs does not have this kind of keybindings but they do have a Vim-like mode - Evil (Extensive Vi Layer). More often than not, I just need to think of what I want to accomplish and type the first letters. Like Replace, Visual, Delete, and so on. It is a modal editor after all, meaning it has modes for everything. This is also what increases my productivity when writing files. I just think of my intentions and Vim does the things for me.
| Graphics: Intel and Mesa 18.1 RC1 Released
|
Recent comments
8 hours 22 min ago
9 hours 32 min ago
14 hours 54 min ago
1 day 15 hours ago
2 days 21 hours ago
2 days 21 hours ago
3 days 9 hours ago
3 days 10 hours ago
4 days 5 hours ago
4 days 6 hours ago