koro1FileHeader icon indicating copy to clipboard operation
koro1FileHeader copied to clipboard

php下快捷键添加头信息,会插到<?php的前面

Open ytlines opened this issue 7 years ago • 1 comments

描述bug(必填) php下快捷键添加头信息,会插到<?php的前面

复现步骤

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

注释设置(必填):

// 插件配置选项,readme:https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE "fileheader.configObj": { "createFileTime": true, "autoAdd": true, "annotationStr": { "head": "/*", "middle": " * @", "end": " */", "use": false } },

// 在光标处插入函数注释,默认配置:{'msg':'','param':'','return':''} "fileheader.cursorMode": {},

// 头部注释,默认设置:{'Author':'your name','Date':'Do not edit','LastEditors':'your name','LastEditTime':'Do not edit','Description':'file content'} "fileheader.customMade": {"Author":"[email protected]","Date":"Do not edit","LastEditors":"[email protected]","LastEditTime":"Do not edit","Description":"file content"}

VsCode设置:

文件后缀(必填): php

如:test.js 的后缀为 js

你得到的注释(必填):

你生成的注释为: /*

预期的行为:

预期得到的注释/行为:

屏幕截图(选填)

如果方便的话,添加截图来帮助解释你的问题:

问题相关(选填) 在这里添加关于这个问题的任何其他上下文。

ytlines avatar Dec 20 '18 14:12 ytlines

收到反馈,我提供了一个配置,针对不同文件后缀头部注释的插入行数。

OBKoro1 avatar Dec 21 '18 03:12 OBKoro1