V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
jht

小白提问: goland 似乎有可以自动补全函数返回值的功能,有朋友知道是内置的还是需要去 plugins 里下载?快捷键是多少?

  •  
  •   jht · Jun 10, 2018 · 3583 views
    This topic created in 2885 days ago, the information mentioned may be changed or developed.

    类似于这种: http.Get("www.studygolang.com") 使用快捷键后变成:resp,err:= http.Get("www.studygolang.com")

    5 replies    2018-06-12 08:49:57 +08:00
    helloworld12
        1
    helloworld12  
       Jun 10, 2018
    可能是,需要函数返回值里面设定 recive 吧
    darylc
        2
    darylc  
       Jun 10, 2018
    D3EP
        3
    D3EP  
       Jun 10, 2018 via iPhone
    .var 就行了吧
    akiakiseofficial
        4
    akiakiseofficial  
       Jun 10, 2018 via iPhone
    我也觉得像是 .var ,你试一试,用法自行百度 “ idea postfix ”
    jht
        5
    jht  
    OP
       Jun 12, 2018
    多谢大家,使用快捷键 ctrl+alt+v 或者直接输入.var 都可以。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   942 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:42 · PVG 02:42 · LAX 11:42 · JFK 14:42
    ♥ Do have faith in what you're doing.