You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added cmantic.addDeclaration command/code-action. Add Declaration will add a declaration of a function to the corresponding header file if the function is not already declared there. If the function is a member function, the declaration will be added to the class, wherever it is defined. Additionally for member functions, Add Declaration will be provided as a Quick Fix (suggested in the blue light-bulb menu), because defining a member function outside of the class with no declaration is an error. (#21)
Added a setting Code Actions: Enable Add Declaration to control whether the Add Declaration code-action is suggested (light-bulb menu). (#21)
Added more variables for generating header guard #define's. See Header Guard: Define Format in the settings for the full list of available variables.
Changed
Move Definition into class will now be available for member functions that are not declared in the class. Similar to Add Declaration, this code-action will be provided as a Quick Fix, since it also fixes the underlying error. (#21)
Changed the way that code generation determines line-spacing: If code is being inserted between 2 non-empty lines, it will no longer place an empty line in-between.
Fixed
Fixed whitespace alignment of Add Definition for member functions in the case that the declaration is not indented.
Fixed indentation of code generated in classes in the case that the class is empty (before, if the class was empty, the new code would not be indented).