Results 269 comments of 葛俊

yeah, you are right, can you make a pull request for it? thanks

i will try to support it, the code base for this plugin is easy. or you can make a pull request for it.

Added basic support https://github.com/gejun123456/intellij-generateAllSetMethod/releases/tag/2.6

so what you mean is like this ``` UserVo convert(User oo){ return UserVo.builder.withUserName(oo.getUserName).withPassword(oo.getPassword).build(); ``` can do this but need some time.

用的是idea自带的intentionAction的快捷键,可以在keyMap搜一下 intention action

![image](https://user-images.githubusercontent.com/6340473/182371849-1e451235-1567-4b1b-9bab-711db01ad036.png)

我理解selectKey和自增id 没啥关系,我觉得可以支持,selectKey就是在跑sql前或者后 去拿个值 然后塞到结构体里面,只是用selectKey可以完成返回自增id的功能,和数据库是啥没有关系的。java里面mybatis返回自增id的另一种实现方式是useGeneratedKey 这个是和数据库相关的一个操作,不支持也没有关系。

${@[email protected]()} 这种是加$ 注释,choose when是要加ignore 当你写代码的时候把其他分支设为ignore就可以代码提示了 同时高亮多个choose when条件现在还不支持。 $注释: ![add$sql](https://user-images.githubusercontent.com/6340473/189061557-bf72dd5e-871e-4122-bb5c-bf4795051b48.gif) choose when ignore注释: ![chooseWhenAutoComplete](https://user-images.githubusercontent.com/6340473/189061890-be11e14e-cf09-4d82-a386-a2bfed0b2440.gif)

谢谢详细的回复 ${@MyEnum.ENUMITEM.method()} 这种现在还不支持,需要优化下 目前可以弄个bind绑定下可以兼容 类似下面这种写法 $sql的注释里面是写你可能的值 ![image](https://user-images.githubusercontent.com/6340473/189462035-7828e1a0-0412-43dc-97a0-3504a23a04be.png) 对于@ignore sql 你在写choose when的代码的时候编辑某个分支时,把其他分支弄为ignore,当前分支高亮和代码提示应该是可以用的, 不过也可以优化为对每个choose when条件单独解析,去查找这个choose when条件的sql 前后缀进行解析,这块要想想怎么弄。