C++ Helper extension for VSCode.
The array of possible patterns to find the source of a header file.
Example:
"CppHelper.SourcePattern": [
"{FILE}.cpp",
"{FILE}.c",
"{FILE}.inl",
"/src/{FILE}.cpp"
]
Where {FILE} is your active header file name.
If you don't want a relative pattern then put a
/
as first character.
The pattern of header guard. Example:
"CppHelper.HeaderGuardPattern": "{FILE}_H"
Where {FILE} is your active header file name in UPPERCASE format.
Show or hide "Create Implementation" in context menu.
Show or hide "Create Implementation Here" in context menu.
Show or hide "Copy Implementation" in context menu.
Show or hide "Create Header Guard" in context menu.
What happen if source file of a header file not found.
Pairs of strings to find/replace within the path
Example:
"CppHelper.FindReplaceStrings": [
{
"find": "/include/Public",
"replace": "/src/Private"
}
],
Above configuration will replace all /include/Public
in your path to /src/Private
when trying to find source code of header file.
You can also use regular expressions.
"CppHelper.FindReplaceStrings": [
{
"find": "/include/Public/([^\\/]+)",
"replace": "/src/Private/$1"
}
],
If you implement a previously implemented function duplicate implementation will happen.
This extension created using regex and there is no parser/compiler. so any wrong implementation may happen. If you found any wrong implementation please let me know in issues and also don't forget to send your code sample.
Add new CppHelper.FindReplaceStrings
configuration (#70)
LF
.operator +
, operator -
bug.Copy Implementation
to clipboard command added (#11).Create Implementation Here
command. (#7)operator()
fixed.SourcePattern
configuration bug fixed.