Right Click – “Open Command Prompt here”

Do you use the Windows command prompt often? Tired of navigating to folders from root directory everytime? Here’s a simple solution. Right click on the folder and click “Open command prompt here”. How to get this option? Here are the steps.

  • Click on Start button, type “regedit” in the text box.
  • Navigate to “HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Folder/shell”
  • Right click on shell and select New->Key. Name the new folder “Command prompt”.
  • Select this folder “Command prompt” and double-click on “(Default)” on the right window. Type “Open Command Prompt here” or any other text you would want to appear.
  • Right click on “Command prompt” folder and select New->Key.
  • Set the Folder name to “Command” or anything meaningful. On the right side window, double click on “(Default)”, and set its value to “cmd.exe /k pushd %L”
  • Close regedit and test the same using Windows Explorer.

 

Source: http://www.google.com

 

 

CScope for C and C++

CScope will allow navigation of C files. How to make it work for C++ files?

Generate the list of files needed using ‘find’ command.

find <path> -name '*.h' >> tags.lst

Provide the path where to start, the files are searched recursively. Also provide the file extension like .h or .cpp or .c++. Store the file names in tags.lst

Run using

cscope -i tags.lst

Update:

Recently I found that cscope defaults to using vi as its editor. The problem is the lack of syntax highlighting in vi. I’m not sure how to go about changing this, but you can alias vi to vim in your .bashrc file, so that cscope invokes vim, and viola you have syntax highlighting.

alias vi="vim"
 
Source: