This is a handler for EPITECH headers in C/C++ projects. It can create them and updates them automatically.
Link to the Visual Studio Code Marketplace extension page.
You can create a header for a new file by:
- Using the
epitech-c-cpp-headers.addHeader
command - Pressing
ctrl+shift+h
(cmd+shift+h
on macOS)
Each time you save a C or C++ file with a header, it will update it automatically.
You can configure the headers in a very simple manner by executing the epitech-c-cpp-headers.setConfig
command.
By default, it will execute it on launch when a configuration field is left unknown.
No dependancies
This extension uses the following configuration entries:
epitech-c-cpp-headers.username
: Specify the username to use in headers (default: null)epitech-c-cpp-headers.login
: Specify the login to use in headers (default: null)epitech-c-cpp-headers.prompt
: Specify if the extension should prompt for unknown configuration fields (default: true)epitech-c-cpp-headers.usePragmaOnce
: Specifies if '#pragma once' should be used as header guard instead of '#ifndef ...' (default: false)epitech-c-cpp-headers.autoGenerateClasses
: Specifies if automatic C++ class generation is enabled (default: true)
None
Initial release
Added support for Makefiles
Added better internal multi-language handling
Added prompt to improve UX while configuring
Added the epitech-c-cpp-headers.setConfig
command to reconfigure headers
Fixed regex escape issues
Fixed possible line mismatch on date updates
Fixed date update on Makefiles
Format fix in README.md
Reworked the edit mechanism allowing the edit history of the file to persist after any header update.
Fixed issues in README.md
Added support for Python, Shell scripts, C#, Objective-C, Java, LaTeX
Added better support for C++
Added End-of-line encoding independance, for inter-operability between different OSs
Added auto-insertion of header define guards for C/C++ empty header files
Added cursor auto-positionning, to set it ready to type
Added internal multi-format support
Implemented the new 2017 header format (Promo 2022)
Changed pre-processors indent style for the 2017 header format
Fixed C++ headers
Fixed issue with config being saved as local instead of global
Added support for '#pragma once' header guards (Thanks to @lodi-g for the pull request)
Added C++ automatic class generator in source and header files
Fixed scolar year in post2017 headers
Fixed the day in pre2017 headers (Thanks to @SaShimy for the pull request)
Reverted the 1.8.1 patch as it was not correct to begin with
Added header auto-filling (with workspace name and filename, thanks to @lodi-g for the pull request)
Fixed issues with auto-filled headers (Thanks to @MrYannKee for the bug report and pull request)
Fixed empty auto-filled headers for files without extensions (like Makefile)
Added support for Rust files and C++ template files
Added support for Haskell files
Fixed issue where normal files could be flagged as C/C++ files for header generation
Fixed indentation issue with auto-insertion of header define guards for C/C++ empty header files
Added ability to rename #ifndef
header guards (Thanks to @ColColty for the pull request)
Added setting to toggle indentation of visibility specifiers in generated C++ class declarations.
Indentation in generated code now respects user's preferences instead of always using tabs.
(Thanks to @Gr1moire for the pull request introducing these two features)
Added support for Assembly files
Added support for HTML files, CSS files and JavaScript/TypeScript files (Thanks to @IchiiDev for the pull request)
Improved comment style for Haskell files (Thanks to @enzo-cesaretti for the pull request)
Added support for Makefile .mk
files (Thanks to @C0Florent for the pull request)