go项目

一:怎么mod init

不要:go mod init /usr/local/go/src/gin-demo
go: malformed module path "/usr/local/go/src/gin-demo": empty path element

请到项目根目录直接:go mod init gin-demo

二:代码提示:#####

一:


image.png

// Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (;) can be a commit character that accepts a suggestion and types that character.
"editor.acceptSuggestionOnCommitCharacter": true,

   // Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change
   "editor.acceptSuggestionOnEnter": "on",

   // Controls the delay in ms after which quick suggestions will show up.
   "editor.quickSuggestionsDelay": 10,

   // Controls if suggestions should automatically show up when typing trigger characters
   "editor.suggestOnTriggerCharacters": true,

   // Controls if pressing tab inserts the best suggestion and if tab cycles through other suggestions
   "editor.tabCompletion": "off",

   // Controls whether sorting favours words that appear close to the cursor
   "editor.suggest.localityBonus": true,

   // Controls how suggestions are pre-selected when showing the suggest list
   "editor.suggestSelection": "first",

   // Enable word based suggestions
   "editor.wordBasedSuggestions": true,

   // Enable parameter hints
   "editor.parameterHints.enabled": true,
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容