Sample generate tags file command ctags -f {tag file location} --recurse --langmap=C++:.C.h.c.cpp.hpp --languages=C++ --extra=+q --fields=+i --verbose {source parent folder e.g. /usr/my_source/} After tag file generated, addset tags={tag file location 1}, {tag file location 2} to .vimrc in VIM type
:set tags={tag file location 1},
{tag file location 2}
or add it to .vimrc
in VIM
For ultraedit, the ctag parameter is -L %fi -f %fo --language-force=C++ --extra=+q --fields=+i
If using VIM as editor, the supported commands are
:ts - tag, class definition as priority
:tj - tag (can use /pattern or /^pattern. Since it is pattern search, it is not binary search mode which would be slow)
:po or ctrl + 't' - older tag search stack
ctrl ']' on selected text to call tag search directly.
: or to scroll for previous calls
(refer http://www.vim.org/htmldoc/tagsrch.html )
VIM commands which is useful when use in conjunction with ctags shift + * - start to search this word in the document shift + # - start to search this word in the document (backward order) n - continue to search forward the word shitf + n - continue to search backward for the word. :e - to reload the current document in VIM. / (command mode) - to search for a word (using regex if supply) in forward order ? (command mode) - to search for a word (using regex if supply) in backward order. :file - to show current edit/view file in VIM ctrl + [ or ctrl ] or ctrl % - nagivate source files. :e - to open another file as another page buffer in VIM. :E - to open another file using a file explorer of VIM :bn - move to next page buffer in VIM. :bp - move to previous page buffer in VIM. :bd - close current page buffer in VIM. :files - show all page buffer loaded in VIM. :%s///g - to replace all the source string to destination string.
If run Ctag from the shell, type vim -t {tag file} and then select which tag position to start edit with
You have to install 'exuberant-ctags' package in Ubuntu. The GNU Emacs version is not accepting normal parameters. I don't know the reason. But this works for me after I install the above mentioned package. http://mpathirage.com
When you try to close a PST. The error message "operation failed, object could not be found" pop up. After you have tried scanpst and detect and repair. Still won't work. Solution. (a hard way) Start Regedit Go to Key HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Microsoft Outlook Internet Settings Where "Microsoft Outlook Internet Settings" is the Outlook profile name that has problem. (note: Outlook support multiple profile even for same Windows login) In the HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Microsoft Outlook Internet Settings, you will see a bunch of long string sub keys in it Like in the format of GUID, like e.g. 75d1fa940a0d3a4497130516edbde90e Then, start at the very first sub keys of HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Microsoft Outlook Internet Settings. Right click on sub key, Select Find (menu) And then, ...
This is using XML feature of the SQL server. (nothing new here) select Type, RestaurantNames from Restaurant AS A CROSS APPLY (SELECT RestaurantName + ',' FROM Restaurant AS B WHERE A.Type = B.Type FOR XML PATH('')) D (RestaurantNames) GROUP BY Type, RestaurantNames This is to get something like below (similar to MYSQL GROUP_CONCAT) Type |RestaurantNames ----- --------------- Chinese Food | Ah Yat Abalone, Liang Yah Yong Tau Foo, Indian Food | Kanna Curry House, Western Fast Food | Burger King, McDonald instead of multiple rows. like Type |RestaurantName ----- --------------- Chinese Food |Ah Yat Abalone Chinese Food |Liang Yah Yong Tau Foo Indian Food |Kanna Curry House
I am so used to source safe recursive check in and found troublesome in clearcase having to do it manually one by one. This is the Unix script that I have come out with //for undo check out all the checked out files cleartool lsco -cview -avobs | cleartool unco -rm `awk '{ print $(5) }' | sed -e 's/^\"*//' -e 's/ *\"$//'` //for check in all the checked out files cleartool lsco -cview -avobs | cleartool ci -nc `awk '{ print $(5) }' | sed -e 's/^\"*//' -e 's/ *\"$//'` //Using xargs cleartool lsco -cview -avobs -short | xargs cleartool ci
Comments
$ ctags --version
ctags (GNU Emacs 22.1)
$ ctags --recurse *
ctags: unrecognized option `--recurse'
Try `ctags --help' for a complete list of options.
$ ctags --version
Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert
Compiled: Jun 11 2008, 21:08:30
Addresses: dhiebert@users.sourceforge.net, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
http://mpathirage.com