caizhengxin / vscodefileheader

VSCode File Header
BSD 3-Clause "New" or "Revised" License
24 stars 11 forks source link

How to set settings.json so that the output is & instead of &# 38; ? #23

Closed gzhang closed 7 months ago

gzhang commented 9 months ago

I have defined the copyright in the settings.json "fileheader.other_config": { "Copyright": "Sch Geophys & Informat Technol" },

however, it output in Julia code fileheader as follows:

@Copyright: Sch Geophys "&#38"; Informat Technol

How to fix it? thanks.

gzhang commented 9 months ago

I have tried some suggestions on the internet, but they do not work. such as: (1) adding the comment "Escape": false, (2) replace the & by \&, or \ampt and so on.

caizhengxin commented 8 months ago

I have tried some suggestions on the internet, but they do not work. such as: (1) adding the comment "Escape": false, (2) replace the & by \&, or \ampt and so on.

Hi, I'm sorry. I just saw it. have time I see how to fix.

caizhengxin commented 7 months ago

I have tried some suggestions on the internet, but they do not work. such as: (1) adding the comment "Escape": false, (2) replace the & by \&, or \ampt and so on.

Hi, I'm sorry, can update v0.10.1 version.

gzhang commented 7 months ago

I have tried some suggestions on the internet, but they do not work. such as: (1) adding the comment "Escape": false, (2) replace the & by &, or \ampt and so on.

Hi, I'm sorry, can update v0.10.1 version.

image

Thank you, but with the current version update, the header file cannot be inserted anymore.

caizhengxin commented 7 months ago

I have tried some suggestions on the internet, but they do not work. such as: (1) adding the comment "Escape": false, (2) replace the & by &, or \ampt and so on.

Hi, I'm sorry, can update v0.10.1 version.

image

Thank you, but with the current version update, the header file cannot be inserted anymore.

Ah, my local debugging test yesterday was OK. and it was Ok to install v0.10.1 on another computer, Let me see again.

caizhengxin commented 7 months ago

I have tried some suggestions on the internet, but they do not work. such as: (1) adding the comment "Escape": false, (2) replace the & by &, or \ampt and so on.

Hi, I'm sorry, can update v0.10.1 version.

image

Thank you, but with the current version update, the header file cannot be inserted anymore.

Thanks, can update to v0.10.4 version. because there are too many files when packaging, I filtered the node_modules directory leading to problems, and then I can test it through the vsix local package first, and then publish it to avoid this problem.

gzhang commented 7 months ago

I have tried some suggestions on the internet, but they do not work. such as: (1) adding the comment "Escape": false, (2) replace the & by &, or \ampt and so on.

Hi, I'm sorry, can update v0.10.1 version.

image Thank you, but with the current version update, the header file cannot be inserted anymore.

Thanks, can update to v0.10.4 version. because there are too many files when packaging, I filtered the node_modules directory leading to problems, and then I can test it through the vsix local package first, and then publish it to avoid this problem.

Thank you; the new version is already working.

But there is also an issue: after the update, the user defined Julia. tmpl has been cleaned up and needs to be redefined.

Thank you.

Perfectly solved the problem of escaping characters.

caizhengxin commented 7 months ago

I have tried some suggestions on the internet, but they do not work. such as: (1) adding the comment "Escape": false, (2) replace the & by &, or \ampt and so on.

Hi, I'm sorry, can update v0.10.1 version.

image Thank you, but with the current version update, the header file cannot be inserted anymore.

Thanks, can update to v0.10.4 version. because there are too many files when packaging, I filtered the node_modules directory leading to problems, and then I can test it through the vsix local package first, and then publish it to avoid this problem.

Thank you; the new version is already working.

But there is also an issue: after the update, the user defined Julia. tmpl has been cleaned up and needs to be redefined.

Thank you.

Perfectly solved the problem of escaping characters.

  1. You can set a custom template path, this will not be emptied.
  2. You can also set a git address that will automatically clone templates.