Coder Social home page Coder Social logo

Comments (2)

LinWanCen avatar LinWanCen commented on May 23, 2024

其实一开始左边一个,后面改成右边一个,2.0增加了get set is两个,再后面干脆直接两个,你有具体的代码场景么,我想看看你要的规则,挖掘下其中的需求。

其实之前有想过再重构成一行全部内容,符号不变,我们工作996还不确定周六周日,最近又被安排去生产查性能问题,接触代码比较少,所以在开源社区活跃度低了些。

from show-comment.

shiniaxiaomi avatar shiniaxiaomi commented on May 23, 2024

我简单的想法是让用户自己明确是设置显示方法的注释还是参数的注释, 因为如果没有规则的话, 对于使用者来说看起来其实是很乱的
如果存在多个方法和多个参数的这种情况, 那么可以让用户选择到底是开启几个注释

例如
示例1: 一行里面方法有3个, 参数有2个, 用户可以在设置里面设置 开启方法注释, 显示个数为2个, 则只显示最左侧的2个方法的注释
示例2: 一行里面方法有3个, 参数有2个, 用户可以在设置里面设置 开启参数注释, 显示个数为3个, 则只最左侧的3个方法的注释, 如果参数个数小于3个, 则显示对应个数的注释
示例3: 一行里面方法有3个, 参数有2个, 用户可以在设置里面设置 从左到右规则的注释, 显示个数为3个, 则按照从左到右的顺序显示注释, 方法和参数哪个更靠左, 就是显示哪个, 直到显示到设置的个数为止

大体的意思是让用户自己知道显示的注释是从哪里产生的, 不然用户看到注释还要花时间分辨注释是来自哪里的

from show-comment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.