Features
This extension support to copy selected section of c/c++ file to clipboard.
Setting
Detail info
You can set the below item in settings.json
// settings.json
"section-info.output.formats": [
{
"label": "github",
"format": "file: ${fileRelativePath}\nline:${line}code:\n```${lang}\n${selectionText}\n```\n"
},
{
"label": "JIRA",
"format": "{code:title=file: ${fileRelativePath}, line:${line}}\n${selectionText}\n{code}\n"
}
],
- Variable for format styling
${fileRelativePath} : relative path of the selected file
${line} : selected line
${func} : function has the selected area
${lang} : programing language of the selected file
${selectionText} : text of selected area
${vscodeCmd} : command to access the selected area with vscode
Sample
Default setting
If There is no setting like above, this extension set the below setting automatically.
{
"label": "github",
"format": "file: ${fileRelativePath}\nline:${line}code:\n```${lang}\n${selectionText}\n```\n"
}
| |