The installation of goland leetcode plug-in can improve the efficiency of writing questions, which is a good choice for students who learn algorithms.
Installation and use steps:
Install plug-in:
- a. Goland -> Preferences
- b. Search and install leetcode editor plugin
After installation, the word leetcode will appear in the lower right corner of goland. Click to enter the leetcode plug-in interface. At the top navigation bar, you can select "Settings"
- Fill in your account name and password
- Set the storage location for downloading the question template (usually, it can be set under go/src, so that you can test it locally), and then press sign in on the navigation bar to log in; if leetcode is logged in with WeChat, the account name can be directly used with email, mobile phone number, etc., or you can click on your profile in leetcode -> Account security, check the suffix of the personal domain name, that is, the assigned account name
- Setting up code templates
// File name, {Question number}_{Question title English name}_test.go, directly generates test files, the English name mainly prevents the inability to compileLT_${}_$!(${})_test // Code content templatepackage leet import ( "testing" ) ${} ${} func Test$!(${})(t *){ }
Start doing the questions and click on the question directly. The plug-in will download the question template locally. Click the button in the upper left corner to submit and test directly. Of course, you can also test locally. When the leetcode plug-in submits the code, it will only submit the code between Begin and END comments.
This is the end of this article about the implementation of using the leetcode plug-in in goland. For more related content of goland leetcode plug-in, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!