amir9480 / vscode-cpp-helper

vscode extension to create implementation for c++ function prototypes.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.cpp-helper
MIT License
355 stars 31 forks source link

Creating source: file location (.) and extension (cpp) not configurable #60

Open hattesen opened 1 year ago

hattesen commented 1 year ago

When choosing "Create implementation" from the context menu, where no source file exists, a new file is created in the context directory, with a .cpp file extension. Changing the order of the "CppHelper.SourcePattern" setting makes no difference.

Proposal

  1. Obtain the default default source file location and extension from the first "CppHelper.SourcePattern" entry , e.g. "/src/{FILE}.cxx" or "{FILE}.cpp"
  2. Create two new settings for "Default source file path" and "Default source file extension".