


How to solve the problem that Gosublime cannot automatically complete the code in sublime text3
The following column sublime tutorial will share with you how sublime text3 solves the problem that Gosublime cannot automatically complete the code. I hope it will be helpful to friends in need!
sublime text3 solves the problem that Gosublime cannot automatically complete the code
version
Sublime Text3.2.1 go version go1.12.1 darwin/amd64 Gosublime 18.11.28
Install Gosublime
Open Perferences–Browse Packages…, enter Gosublime, enter in the command line:
git clone https://github.com/DisposaBoy/GoSublime.git
Auto-complete solution
Using sublime text3 on windows and mac cannot even install the Gosublime plug-in. Automatically complete the code and found the following solution after many days of research.
Open Perferences–Browse Packages… and enter Gosublime:
1. Create the margo directory under the src directory;
2. Copy src/margo.sh/extension-example /extension-example.go file to the margo directory;
3. Copy the margo folder (all files and directories) to the src/margo.sh/vendor directory;
4. Re- Open sublime text3 and wait a few minutes for the code to be automatically completed.
Gosublime configuration
Perferences–Package Settings–Gosublime–Settings - User { "env": { "GOPATH": "/data", "GOROOT": "/usr/local/go", "PATH": "$GOROOT:$GOPATH:$GOROOT/bin", }, "gscomplete_enabled": true, "fmt_enabled": true, "fmt_tab_indent": false, "fmt_tab_width": 4, "autocomplete_snippets": true, "autocomplete_tests": true, "autocomplete_builtins": true, "autocomplete_closures": true, "autocomplete_suggest_imports": true, "calltips": true, "use_named_imports": true, "autoinst": true, "ipc_timeout": 1, "fmt_cmd": ["goimports"], "on_save": [ {"cmd": "gs_comp_lint"}, {"cmd": "goimports"} ], "lint_enabled": true, "linters": [ {"cmd": ["go", "run"]} ], "comp_lint_enabled": true, "comp_lint_commands": [ {"cmd": ["go", "install"]} ], }
ctrl qshow help
Perferences–Package Settings–Gosublime–Key Bindings - Default { "keys": ["ctrl+q"], // "keys": ["super+.", "super+h"], "command": "gs_doc", "args": {"mode": "hint"}, "context": [{ "key": "selector", "operator": "equal", "operand": "source.go" }] },
The above is the detailed content of How to solve the problem that Gosublime cannot automatically complete the code in sublime text3. For more information, please follow other related articles on the PHP Chinese website!

SublimeText is suitable for developers who pursue speed and simplicity, while VSCode is suitable for users who need strong scalability and integration capabilities. 1.SublimeText is known for its lightweight and fast response, with GotoAnything and multi-select powerful. 2. VSCode is known for its scalability and IDE functions, with built-in Git and debugging tools, and IntelliSense improves development efficiency.

SublimeText's plug-ins and packages can be installed and managed through PackageControl to improve programming efficiency. 1. Install plug-ins such as BracketHighlighter to simplify code reading by highlighting bracket matching. 2. Use SublimeLinter to configure pylint to implement real-time code checking. 3. Use SideBarEnhancements to customize the sidebar function to optimize file management.

SublimeTextisfreeduringanunlimitedtrial,buta$99licenseisrecommendedforregularuse.1)Thetrialallowsfullfeatureaccesswithouttimelimits.2)Alicenseoffersperpetualuse,futureupdates,andremovespurchasereminders,enhancingproductivityandsupportingdevelopers.

SublimeText can greatly improve work efficiency. 1) Multiple selection and multicursor functions allow editing of multiple positions at the same time, 2) Command panel provides fast function access, 3) Macros and fragments can automate common operations, 4) Optimized configuration and shortcut key use can improve performance and efficiency.

SublimeText offers a free trial, but ultimately requires a paid purchase for a permanent authorization. 1) During the free trial period, users can experience its functions, but they will receive a purchase prompt. 2) After purchase, users can use it permanently, no subscription fee, and access more plug-ins and themes.

ThemaindifferencesbetweenthepaidandunpaidversionsofSublimeTextaretheremovalofstatusbarremindersandoccasionalpop-uppromptsinthepaidversion.1)Unregisteredversion:fullyfunctionalwithallcorefeatureslikesyntaxhighlighting,codecompletion,andcommandpalette,

SublimeText is worth buying. 1) Its simple interface and powerful functions, such as multi-line editing and GotoAnything, improve development efficiency. 2) Rich plug-in ecosystem, such as Anaconda, enhances the development experience. 3) Although the price is $70, its performance and fluency are great value for professional developers.

SublimeText is loved by developers for its powerful code completion and syntax highlighting capabilities. 1) Code completion can automatically prompt function names, variable names, etc. to improve programming efficiency. 2) Syntax highlighting distinguishes code elements through different colors to improve readability and error detection speed.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Linux new version
SublimeText3 Linux latest version
