In what order does Class Completion put its results?

后端 未结 4 651
太阳男子
太阳男子 2021-01-19 17:37

Example: I create a new unit, declare a class with several methods like constructor, destructor, method1, method2, method3 in that order and then hit Ctrl-Shift-C. The IDE c

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 18:06

    The IDE tries to create everything in alpahabetical order. But, if the methods become out of sequence (eg you rename a method) it gets in a muddle. The exact behaviour seems to depend on the version. Older versions would simply append the new method to the end of the file in any order. Newer versions seem a bit cleverer, but I haven't worked out exactly how yet.

提交回复
热议问题