codetmpl.txt

来自「VC开发工具使用技巧源代码:CodeTmplExBin」· 文本 代码 · 共 91 行

TXT
91
字号
                            CodeTmpl.txt 
                            ------------

 Configuration file for CodeTmpl add-in. Should live in DevStudio\SharedIDE


                           Example Comment Blocks	
                           ----------------------


#{File Header
/////////////////////////////////////////////////////////////////////////////
//
//                           Copyright .....
//
/////////////////////////////////////////////////////////////////////////////
//
//
//  File     :   
//
//  Author   :   
//
//  Date     :   
//
//  Synopsis :   
//
////////////////
#}

#{Block Header
/////////////////////////////////////////////////////////////////////////////
//
//  
//
///////////////
#}

#############################################################################

                           Example Code Snippets
                           ---------------------


#{Hello World (Console)
#include <stdio.h>

int main()
{
    puts("Hello, World");    
}
#}

#{Hello World (GUI)
#include <windows.h>

int PASCAL WinMain(HANDLE hInstance,
                   HANDLE hPrevInstance,
                   LPSTR lpszCommandLine,
                   int cmdShow)          
{
    MessageBox(NULL, "Hello, World", "Example", MB_OK);
}
#}

#############################################################################

                           Example Syntax Elements
                           -----------------------

#{Lazy Error Handling
try
{
}

catch(...)
{
}
#}

#{Quick Class Definition
class X
{
public:
    X();
    ~X();
protected:
private:
};
#}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?