j178 / leetgo

Best LeetCode friend for geek. :snowboarder:
MIT License
539 stars 32 forks source link

How to keep data structure comments? #108

Closed xdliyushen closed 1 year ago

xdliyushen commented 1 year ago

Verify steps

Description

Wishing there was a data structure comment that uses in the code inserts before the document. suck like this in problem 25.reverse nodes in k-group

/**
 * Definition for singly-linked list.
 * function ListNode(val, next) {
 *     this.val = (val===undefined ? 0 : val)
 *     this.next = (next===undefined ? null : next)
 * }
 */

Possible Solution

No response

j178 commented 1 year ago

Thank you for opening this!

These comments are deleted intentionally by removeUselessComments modifiers, if you need them, you can remove removeUselessComments from code.modifiers in your config file(located in ~/.config/leetgo/config.yaml).

xdliyushen commented 1 year ago

Thanks! It works!