Skip to content

SourcePower:Source Insight scripts helping you dealing with coding and reading code.

Notifications You must be signed in to change notification settings

wtniao/SourcePower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

SourcePower(supported minimum-version 3.5065)

Source Insight scripts helping you understanding messy codes.

Before After

This is a source Insight script.It is suitable for most c/c++ codes in which there are too much token like #ifdef、#elif and #if that programmer could hardly understand what the codes mean, or which branch it would go through.

This script turn the inactive code to gray looking like comments by analyzing macro definition in variable cflags in your makefiles.

And what's more,it offers quick operation for svn differ,svn log, opening the explorer and locating the current file.

Installation

This is a source insight script tool,so we got to set up in source insight.

1.Open source insight and open the Base project.

2.download the scripts ,and paste them to utils.em file in your opening base project.

3.Save & close project

4.Open menu Options =》 Menu assignments

5.Type "setEnvironment" in Left “Command” Colume,Select "Project" in Right "Command" Colume,Select "End of menu" in right bottom "Menu contents" colume. And do the same to Macro "clearEnvironment" .And Press OK.

Usage

1.Pull the sample project & open it,you'll see four statements that you don't know which will be excuted.

Bad

2.Click Project=>SetEnvironment ,then instruments will show.And don't press any key.

3.Open you terminal & locate to the build directory of the sample project.

4.Type "make check" in your terminal.

5.Turn back to source insight ,and click the Sure button to go on.

6.Then you'll see like This

Good

Help

This script works by analysing the variable named CFLAGS in your makefile which will pass -D to gcc or g++.So if your variable who passing -D to gcc or g++ isn't CFLAGS, you should modify this script. Any help please contact me via Email:wtniao@163.com ZhiHu:ibirds

About

SourcePower:Source Insight scripts helping you dealing with coding and reading code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published