Home  >  Q&A  >  body text

html - sumlime text3代码自动补全功能问题!

sumlime text3代码自动补全功能问题!
比如我写html5的canvas方法,用图说明吧:

我输入li就出现代码补全,但是一点击进去它就把ctx这个也补全了,但是很多时候我的命名不是ctx,那就很麻烦,每次我还要去清除ctx,如果我先输入了一个变量名.li,然后它这个代码补全,补全完后就是,“变量名.ctx.lineCap”,就是没研究透sumlime这个东西,我想直接像其他工具那样输入变量名.,就出现各种方法,然后点击就是变量名.方法名,这样了吗?是设置没对吗?

ringa_leeringa_lee2717 days ago690

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 14:50:16

    Since I started using sublime, I have gradually stopped using the code prompt function. Some of the things prompted are redundant and I have to go back and delete them.

    Sublime’s variables and file indexes are not as powerful as webstorm, so choosing sublime usually depends on its startup speed and response speed

    I now use sublime to improve my coding skills, and I can remember many function names

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 14:50:16

    Did you select the first one as the input result? This has been prompted to be a {prop}, that is, an attribute. Selecting this will automatically attach the variable with this attribute. Aren’t there multiple groups to choose from? Choose something else.
    And that one

    But many times my name is not ctx, which is very troublesome. Every time I have to clear ctx

    Don’t worry about this, whether it is ctx, cxt, xtc or others, sublime will match it intelligently.

    reply
    0
  • Cancelreply