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
{{ message }}
Repository navigation
Please add snippet editing to this extention #3556
It would be really useful to be able to tweak the snippets to my liking in a text file. I personally have minor formatting tweaks that I'd like to do like adjusting the position of the first curly bracket after for and having **env in the main function. I'd prefer not to have duplicates in the context menu either.
Reacted by Elijah Hopp, nedo, metaquarx, Ahmad Elbadri, Guillermo Callaghan, Manoj Baishya, Tony Yang, Kaiwen He, Hrishikesh Deshpande, Ido Dana and 4 more
Reacted by astrolemonade, Elijah Hopp, nedo, Manoj Baishya and JefferyLi0903
Yeah, this is relatively straight-forward to implement, we just need to add a setting for a snippets json file with the snippet data, and then send the file path to our language server process, similar to how we handle the compileCommands json setting.
chongchai We'd like too eventually, but we're all busy working on other higher priority stuff currently. If someone could help out with a pull request with the TypeScript changes that would help (we'd still have to add some language server side changes to handle the new snippets).
It would be great if it just used the clang-format that was already set. Then you wouldn't even have to edit the snippets, but they would just conform to the existing code style you have chosen.
Reacted by nedo, astrolemonade, Elijah Hopp, metaquarx, Ahmad Elbadri, Manoj Baishya, Tony Yang, Kaiwen He, Sergio Alonso Pascual, Dr_McFish and 2 more
Activity
sean-mcmanus commentedon Apr 29, 2019
Another user requested this at #3354 too.
Yeah, this is relatively straight-forward to implement, we just need to add a setting for a snippets json file with the snippet data, and then send the file path to our language server process, similar to how we handle the compileCommands json setting.
chongchai commentedon Jun 3, 2019
Sean McManus (@sean-mcmanus) any plan to implement this feature?I alse want to modify the extension's snippet for some different code style.
sean-mcmanus commentedon Jun 3, 2019
chongchai We'd like too eventually, but we're all busy working on other higher priority stuff currently. If someone could help out with a pull request with the TypeScript changes that would help (we'd still have to add some language server side changes to handle the new snippets).
elijahfhopp commentedon May 20, 2020
It would be great if it just used the clang-format that was already set. Then you wouldn't even have to edit the snippets, but they would just conform to the existing code style you have chosen.