日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

secureCRT vscode配环境记录

發布時間:2024/1/1 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 secureCRT vscode配环境记录 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

20220713
使用secureCRT鏈接遠程服務器時,在用到vim中含有中文的情況時出現亂碼,并且只要一編輯就會出現亂碼

使用 https://blog.csdn.net/sinat_30603081/article/details/124821038 的方法依次對于文件的格式進行修改,但是還是無法解決,最后發現是secureCRT的session格式的設置問題

最終的解決方法
Options -> session Options -> appearance -> character encoding 修改為UTF-8后解決該問題

20220718
1、配置golong本地開發環境,修改vim的時候/etc/profile是一個只讀文件,想要export幾個路徑。
方法:輸入 w !sudo tee % 后,在輸入q退出,在打開文件時,文件已經被修改

20220720
1、go環境配置鏈接:https://blog.csdn.net/qq_44847649/article/details/123048329
配置云服務器中的golong環境遇到的問題:

INSTALL ALL之后會出現安裝失敗的問題,這是因為國內墻的原因,解決方法如下:
在終端中執行如下指令,然后關閉vscode重新打開,在執行install后,安裝成功!

go env -w GO111MODULE=on go env -w GOPROXY=https://proxy.golang.com.cn,direct

2、git 安裝
centos 7.0 git安裝: yum install git
查看git是否安裝成功:git --version

20220728
1、vscode的golang環境無法跳轉的問題
借鑒于: https://www.cnblogs.com/senberhu/p/15737504.html
首先,需要安裝好 go 插件,插件市場搜索go,選一個即可安裝。
然后,需要安裝 go 的工具包。在 vscode 中,輸入快捷鍵:command(ctrl) + shift + p,在彈出的窗口中,輸入:go:install/Update Tools,回車后,選擇所有插件(勾一下全選),點擊確認,進行安裝(設置GOPROXY)。
接下來,在項目的 settings.json 文件中添加配置:

"go.goroot": "D:\\Go","go.gopath": "D:\\gopath",//第三方庫代碼提示"go.inferGopath": true,"go.formatTool": "goreturns",//自動完成未導入的包"go.autocompleteUnimportedPackages": true,"go.gocodePackageLookupMode": "go","go.gotoSymbol.includeImports": true,"go.docsTool": "gogetdoc","go.useCodeSnippetsOnFunctionSuggest": true,"go.useCodeSnippetsOnFunctionSuggestWithoutType": true,"go.useLanguageServer": true,"[go]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.organizeImports": true, }, // Optional: Disable snippets, as they conflict with completion ranking. "editor.snippetSuggestions": "none", },"[go.mod]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.organizeImports": true, },},"go.trace.server": "verbose", "gopls": { // Add parameter placeholders when completing a function. "usePlaceholders": false, // If true, enable additional analyses with staticcheck. // Warning: This will significantly increase memory usage. "staticcheck": false, },"go.languageServerFlags": [ "-remote=auto", "-logfile=auto", "-debug=:0", "-rpc.trace", ],

首選項-設置 去掉 Use Language Server

2、golang語言在使用ssh遠程連接服務時,出現“golang unrecognized import path “golang.org/x/crypto””的錯誤
這是由于國內上網眾所周知的原因,用代理的方式解決:

[root@test rttys]# export GOPROXY=https://goproxy.io [root@test rttys]# export GO111MODULE=on [root@test rttys]# go get go: downloading golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4 go: extracting golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4 go: finding github.com/dwdcth/consoleEx v0.0.0-20180521133551-f56f6eb78b76 go: finding github.com/gorilla/websocket v1.4.1 go: finding github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c go: finding github.com/json-iterator/go v1.1.9 go: finding github.com/kylelemons/go-gypsy v0.0.0-20160905020020-08cad365cd28 go: finding github.com/mattn/go-colorable v0.1.4 go: finding github.com/rakyll/statik v0.1.7 go: finding golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4 go: finding github.com/rs/zerolog v1.18.0 go: finding github.com/mattn/go-isatty v0.0.8 go: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d go: finding github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 go: finding github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742

如果沒有go.mod,需要創建go.mod文件,并將以下的信息拷入到該文件中:

[root@test rttys]# cat go.mod module github.com/zhaojh329/rttysgo 1.14require (github.com/dwdcth/consoleEx v0.0.0-20180521133551-f56f6eb78b76github.com/gorilla/websocket v1.4.1github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19cgithub.com/json-iterator/go v1.1.9github.com/kylelemons/go-gypsy v0.0.0-20160905020020-08cad365cd28github.com/mattn/go-colorable v0.1.4github.com/rakyll/statik v0.1.7github.com/rs/zerolog v1.18.0golang.org/x/crypto v0.0.0-20200311171314-f7b00557c8c4 )

總結

以上是生活随笔為你收集整理的secureCRT vscode配环境记录的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。