Source Insight Add Custom macro

Source: Internet
Author: User

Open the em file under the C:\Documents and Settings\xxxx\my documents\source insight\projects\base folder , and you can see all the Macro definition of a series of functions, attachments are I rewrite a relatively simple annotation macro, you can copy and paste it into the em file, and then press a similar action for the macro set a shortcut key

Of course we can create the em file ourselves, save it to the C:\Documents and Settings\xxxx\my documents\source insight\projects\base folder after creation.

Then open Si->project, open->base project.

Si->project, add project file, and add the saved em file to BASE project .

Si->option, key assignments, find the macro Macro:insertmark you wrote , set a shortcut key for the macro, such as Ctrl+alt +/.

macro Insertmark () {hbuf=getcurrentbuf () ln=getbuflncur (hbuf) sztime= Getsystime (1) Hour=Sztime.hour Minute=Sztime.minute Second=Sztime.second Day=Sztime.day Month=Sztime.month Year=Sztime.yearif(Day <Ten) Szday="[Email protected]@"     ElseSzday= Dayif(Month <Ten) Szmonth="[Email protected]@"     ElseSzmonth=MonthInsbufline (hbuf, LN,"//Add by Author [@[email protected]/@[email Protected]/@[email protected] "for # # Begin") insbufline (hbuf, ln+2,"//Add by Author [@[email protected]/@[email Protected]/@[email protected] "for # # End")}

Source Insight Add Custom macro

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.