您的位置:首页 > 健康 > 美食 > 2023房价即将暴涨十大城市_app外包公司推荐_关键词搜索工具有哪些_江苏seo哪家好

2023房价即将暴涨十大城市_app外包公司推荐_关键词搜索工具有哪些_江苏seo哪家好

2025/4/18 22:57:11 来源:https://blog.csdn.net/u011374344/article/details/147143687  浏览:    关键词:2023房价即将暴涨十大城市_app外包公司推荐_关键词搜索工具有哪些_江苏seo哪家好
2023房价即将暴涨十大城市_app外包公司推荐_关键词搜索工具有哪些_江苏seo哪家好

Download Cursor

Let's go to the official website of Cursor.

Cursor - The AI Code Editor

You can click the first button to download the cursor installer directly if your operating system is Windows. 

Otherwise, you need to click the second button to open the download page and then select your appropriate installer from the newly opened page which is something like this.

It will take about five minutes , Let us take a quick break . 

 

Now we are going to move on to installing Cursor.

First ,let us open the folder that receives the file of cursor installer, and then double click that file.

Don't forget to select all the options as shown in the picture below.

Otherwise, you may not be able to find the Cursor shortcut on the Windows desktop after completing the installation of Cursor.

The whole way is very simple ,so I  skipped pretty much all processes.

Click the finish button to close the installation page.

Now you can find a shortcut called Cursor on the windows desktop, and then by double-click it to open the Cursor editor.

Configuring Cursor to work nicely with go

You should create a folder and then click the button that says open project.

For example, my folder is called Go_test

The newly opened screen looks like the next picture.

Let us open the extension panel  by clicking the icon which is circled at the top left of the editor.

We are going to install Go extension by typing string 'Go' in the edit control at the top left of the Cursor editor.

Click the button called 'install' to start Go extension installation process.

We should start the Cursor editor right back up after completed the extension installation process.

Now you can see the Go extension that  was just installed in the installed list of the extension panel.

Out of the box, Cursor does not have any support for Go, It is only by installing a little extension that we kind of teach the editor how to handle the Go code.

Now we are going to make sure that there is a code editor window open like this so that I can type a set of characters.

If you do not have a code editor window open, you can go to the file option and create a new file here.

When I do that, you should see something at the bottom - right corner that says “plain text”

So we are going to click that and we will change the language mode of the editor to Go.

I type the command "Go" into the top - left input box and then click the option labeled "Go (go)" to change the editor mode to Go.

Now you should see something that says "go" at the original "plain text" position ,which means we are done with the configuration of Go.

That is pretty much all.

We will move on to a very tiny project in the next seciton.  

See you next chapter.

The original video and subtitles

Video: 004 VSCode Installation

Subtitles:

In the last section we kicked off the go installation process after installing the go runtime.

You should see a message like this on the screen.

So looks like my installation was successful.

Or click close to close the installer.

Now before we move on to the code I just want to ensure that go was installed correctly to make sure

that it was.

We can open up our terminal so I can open up my terminal

and then we can write one very simple command go like so when we write the GO command.

So literally just the word go.

You should see a long Help message like this appear on the screen the GO command right.

Here is the prime tool that we have to interact with the GO language.

So we're going to end up using this go tool to build compile test.

A lot of different things around all of our go projects.

Now when you run the GO command if you see a message that says something like unrecognized command go

well that means that there was probably a little bit of a issue during the installation process and

you might want to hop over to the discussion boards and I'll do my best to help you troubleshoot the

issue.

All right.

I'm going to close my terminal so we're pretty much done with the GO installation.

Yes it really is that straightforward.

We're now going to move on to installing the VS code editor after we install it.

We'll then do the quick configuration process.

So again I'm going to polling on the screen that you can navigate directly to.

So this is the installer for the VS code editor.

Again it is optional but I really very very highly recommend you install it and just give it a shot.

You can always uninstall it if you don't like the code editor.

It's going to open up a new tab or go to code dot visual studio dot com and then on the page that pops

up I can find either the green download link on the top right or on the left hand side.

So download for the appropriate operating system and we get this my zip file.

I'm going to open up the folder that it's installed into receiving that was downloaded into.

OK so here's the zip file that I just downloaded.

It contains the actual vs code editor.

I'll double click it to extract it and then on Mac OS to install the actual editor.

Once we get the app inside this folder.

We can drag it and drop it into our applications folder on the left hand nav over here.

So drop it onto applications.

And now any time I want to start up my VS code editor I can open up my launchpad and I'll see it right

here on the screen.

OK.

So again installation process here for these different tools.

Not too bad not too rough.

Let's take a quick break.

We'll come back in the next section.

We're going spend just a little bit of time configuring vs code to work nicely with go.

So I'll see you in just a minute.

Video: 005 Go Support in VSCode

Subtitles

Now we have installed Vs code editor. We are going to do just a tiny bit of configuration to set it up to work nicely with Go.

So out of the box Vs code editor does not have any support for Go.

It is only by installing a little extension do we kind of teach editors how to handle the Go code.

So let us get to it

I will open up the Vs code editor,and then when I do I am going to find the top.

Now how many appear.

So here is the top menu bar.

Or find the option view.

And then inside of there I will find the option extensions.

So here is extension right here.

Now this sidebar that pops up lists a ton of extensions, so we can install them into our code editor.

A lot of these different extensions add support for different languages. Inside the editor, like say Python or C-Sharp right here .

Now we want to search for a very particular extension

We are going to enter a search string of go.

Now, hopefully, the first result that pops up is something that says Rich Go language support for Visual Studio should have more than 1 million downloads

And so just click the install button to install.

Now I wish I could say that the installation process or the configuration for Go was that easy.

Unfortunately there is one more step we have to do.

When we install this Go language extension right here It is just really a bounding layer between our code editor and a sef of underlying command line tools. That are actually responsible for kind of doing some code quality checks of any open file. And so extension while fantastic and add support to the language or to our editor for us.

We also have to make sure that it has the ability to install these extra tools that it needs to function properly.

So to make sure that it installs these other tools really straight forward.

All we have to do is close the code editor.

So we are going to quit Visual Studio code entirely or then start it right back up.

It is going to start right back up.

And here is the kind of weird part.

But just bear with me for a second.

I am going to make sure that I have a code editor windows open.

If you do not have a code editor window like this , we can actually type them too.

You can go up to file and new file up here and so boom I have got a code editor window open.

Now on the bottom right hand side you should see something down here that says plain text.

So we are going to click that we are going to change the language mode of the editor to Go.

So I will type in Go and I should see an option here of Go.

Now when I do that, you will see this yellow text down here at the very bottom right hand side something that says analysis tools missing.

And so, these are extra tools that the Go extension needs to make sure that it can kind of vet your code quality inside your editor.

So we are going to click on this and that is going to prompt us to install a couple of analysis tools.

So all we have to do is click install and we are going to see a terminal window pop up here and it is going to grab a couple of different tools and it should just take a second or two to finish up .

So that is pretty much it

Now the next time, we will open up a go file in the vs code editor. We should have a bunch of tools available to help us to write code and analyze it and just make sure we are doing things correctly.

So that is pretty much it for our code editor setup.

Let us take a break come back in the next seciton an we are going to start talking about the first project.

So I will see you just a minute

previous page: Go installation process

next page:

 

 

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com