Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编写一个片段来快速/轻松地为存储库生成一个接口。如果我命名文件IFooRepository,我希望片段将单词Foo放在几个区域。
IFooRepository
Foo
我假设这可以通过转换开箱即用的 TM_FILENAME_BASE 变量来实现,但我很难弄清楚。
弄清楚了。伙计,我对正则表达式很烂,并且在想这一切都错了
${TM_FILENAME_BASE/I(.*)Repository/$1/}