填入内容:

  • 查找:^(categories:.\*)$
  • 替换:$1\ntags: []

核心逻辑:

  • ^...$:选中整行。
  • $1:保留原有的 categories 行。
  • \n:换行。