my.ftd
(1) 基本
mymain2
GLOBAL
This is some stub text for the content of your new snippet.
Please replace the stub text with the content that you want to show when the snippet is triggered.
Enjoy!
[>END<]!$[FingerTextData FingerTextData]@#
mymain
GLOBAL
This is some stub text for the content of your new snippet.
Please replace the stub text with the content that you want to show when the snippet is triggered.
Enjoy!
[>END<]!$[FingerTextData FingerTextData]@#
(2)特殊,指定文件名字
template
Name:makefile
CXXFLAGS = -O2 -g -Wall -fmessage-length=0
OBJS = $[![file name]!].o
LIBS =
TARGET = $[![file name]!].exe
(TARGET):(OBJS)
(CXX)−o(TARGET) (OBJS)(LIBS)
all: $(TARGET)
clean:
rm -f (OBJS)(TARGET)
[>END<]!$[FingerTextData FingerTextData]@#
(3)指定语言
if
Lang:MATLAB
if [![condition]!],[![]!]
end[>END<]!$[FingerTextData FingerTextData]@#
本文介绍了一种代码片段管理的方法,包括基本代码段、特定于文件的模板和指定语言的条件语句示例。通过这些示例,开发者可以快速构建和复用代码,提高开发效率。
8410

被折叠的 条评论
为什么被折叠?



