visual studio code python插件下载_visual studio code 的必装推荐插件plugin, vscode, vsc
An Old Hope Theme???? (theme, 推薦,且推薦它的 classic theme,安裝后在顏色選項里選擇,該插件的定制見文末)
Cobalt2???? (theme)
Dracula for
markdownlint
Go for Visual Studio Code????????????????????????? (https://github.com/Microsoft/vscode-go)
GitLens
Git History, Search and More (includinggit log)
Project Manager
Trailing Spaces
Stylelint
ESLint
Path Intellisense
IntelliSense for CSS class names
CSS Peek
Open in browser
Language support for Java
Debugger for Java
Maven for Java
Python extension for Visual Studio Code
Node.js Modules Intellisense
Rainbow Brackets
VS Code Glide
Visual Studio Code extension for GitExtensions
Text Marker ? ? ? ? ? ? ? ? ? ? ? ? ? (publisher:?Ryuichi Inagaki) (你可以這樣安裝:打開 VS Code Quick Open (Ctrl+P),然后運行 ?ext install ryu1kn.text-marker)
Settings Sync
vim ?? (or?vscodevim) ? ? ? ? ? ????????????????????? Vim mode for Visual Studio Code,??? https://github.com/VSCodeVim/Vim?????? (自定義的配置如下:配置完了重啟才會生效 )
"vim.leader": " ","vim.cmdLineInitialColon": true,"vim.history": 150,"vim.hlsearch": true,"vim.insertModeKeyBindings": [
{"before": ["j", "k"],"after": [""]
},
{"before": ["k", "j"],"after": [""]
}
],"vim.visualstar": true,"vim.easymotion": true,"vim.easymotionMarkerBackgroundColor": "#FFFFFF","vim.easymotionMarkerForegroundColorOneChar": "#191970","vim.easymotionMarkerForegroundColorTwoChar": "#000000","vim.easymotionMarkerWidthPerChar": 8,"vim.easymotionMarkerHeight": 16
使用說明,gd 可以跳轉到定義,gh可以打印變量/函數(shù)的幫助;? easymotion的使用(本頁可見區(qū)域的跳轉): w? 向forward索引單詞, b? 向backward索引單詞, j? 向forward索引行首, k ?向backward索引行首, / ... ? 搜索多個字符。 s ? 搜單個字符, f 向forward搜單個字符, F 向backward搜單個字符。
gometalinter
visual studio code 在使用 golint 作為代碼檢查工具的時候提示 exported method should have comment or be unexported, 煩人,可以使用 gometalinter 進行替代:
gometalinter 簡介
該工具基本上集成了目前市場上所有的檢測工具,然后可以并發(fā)的幫你靜態(tài)分析你的代碼,集成的工具如下:
deadcode
dupl
errcheck
gas
goconst
gocyclo
goimports
golint
gosimple
gotype
gotypex
ineffassign
interfacer
lll
maligned
megacheck
misspell
nakedret
safesql
staticcheck
structcheck
unconvert
unparam
unused
varcheck
vet
gometalinter安裝:
go get -u -v github.com/alecthomas/gometalinter
gometalinter--install --update # 這步最好也運行下,更新gometalinter所需要的工具
gometalinter 的使用
cd 到go項目下,執(zhí)行 gometalinter ./...? 即檢查所有目錄的go文件,此時vendor目錄下的也會檢測。
如果是想指定指定目錄,執(zhí)行 gometalinter + 文件夾名。
vscode集成gometalinter
vscode 默認使用的是golint,如果想用gometalinter替換golint,直接打開設置項,在用戶設置里添加"go.lintTool": "gometalinter"即可。
Settings Sync? 插件的使用:
1, 安裝插件并重啟VSCODE
2, 重啟后按快捷鍵 alt+shift+u (這里假設你第一次用)
它會彈出一個窗口對應的是github上面的創(chuàng)建個人gist的頁面,如果未登錄請先登錄github.?? 我的專為 vscode settings sync 生成的 key 見我的郵件,郵件里搜索 github git key for vscode settings sync
3, 切回到vscode,他會有個輸入?yún)^(qū),就是存放剛才生成的key.
然后理論上他就開始對你本機的配置進行一個掃描上傳了.至此上傳工作完成.
接下來我們到另一臺電腦上了下載配置.同樣的先安裝Settings Sync插件,并重新加載.
然后按快捷鍵alt+shift+d,就應該會彈出一個輸入框,請在這里輸入之前保存下來的key(GIST ID),回車后將會自動下載之前上傳的配置.
那么下載完成后,你這臺電腦修改了相關配置再次上傳就好了.是不是感覺方便多了~
其他的說明,如果在輸入gist id寫錯了,讀取不到的情況下,大概需要重置設置,按F1,輸入sync,這里有重置選項.試試看~
如果由于該插件的單詞高亮顏色很不友好,解決辦法是在vscode 的settings里自己定義,即增加如下行:
"workbench.colorCustomizations": {"editor.selectionHighlightBackground": "#0b3f53",//"editor.selectionBackground": "#1d6980",
}
具體的意思請參考官網(wǎng): https://code.visualstudio.com/docs/getstarted/theme-color-reference#_editor-colors
總結
以上是生活随笔為你收集整理的visual studio code python插件下载_visual studio code 的必装推荐插件plugin, vscode, vsc的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python伪装浏览器什么意思_用pyt
- 下一篇: django mysql connect