赞
踩
直接去vscode的商店搜索github theme
需要找到的选项是 new snippet
可以参考文章
clion也可以这样操作
vscode定制快速文件头,可以自动显示文件名以及创建时间
对于vscode来说,如果想设置多个snippet,则
- {
- // Place your snippets for systemverilog here. Each snippet is defined under a snippet name and has a prefix, body and
- // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
- // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
- // same ids are connected.
- // Example:
- // "Print to console": {
- // "prefix": "log",
- // "body": [
- // "console.log('$1');",
- // "$2"
- // ],
- // "description": "Log output to console"
- // }
- "ANN":{"prefix": "annotation",
- "body": [
- // "#!/usr/bin/env python",
- // "// -*- coding: utf-8 -*-",
- "/**********************************************************************
- "@
- "**********************************************************************/
-
- "$0"
- ]},
- "HEADER":{"prefix": "author",
- "body":[
- "/*
- "@File : $TM_FILENAME",
- "@Time : $CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
- "@Author : YouChunBo ",
- "@Version : 1.0",
- "@Site : ",
- "@Desc : None",
- "*/
- "$0"
- ]},
- "PNT":{"prefix": "ppp",
- "body": [
- "printf;
- "$0"
- ]},
- }

在用vscode连接服务器后,点击插件商店,然后选在在ssh xxx处安装插件即可
在settings.json文件中添加如下内容
其中setting文件的打开方式为:
其中1是显示结果中包含什么,2是执行什么操作,可以反复点击,3是都操作完以后输出结果
参考
SublimeText 修改文件扩展名的默认语法高亮 - 削微寒 - 博客园 (cnblogs.com)https://www.cnblogs.com/xueweihan/p/9830168.html
在vscode商店下载ctags就可以了,然后使用也是参考vim下的ctags
对着函数右键go to reference之后,就会在侧边栏出现一个reference的标志,其中就包含这这个函数的所有reference
主要就是因为主机秘钥在host端和client端不一致,执行
ssh-keygen -R client ip
即可 ,如果再不行,试一试用terminal ssh登录下
参考
vscode通过多个跳板机连接目标机(两种方案亲测成功)_vscode连接跳板机-CSDN博客https://blog.csdn.net/pdx_ll/article/details/136681193尝试了很多方法,下面的方法成功了
Host server
HostName xxxx
User xxxx
Port xxxx
ProxyCommand C:/Windows/System32/OpenSSH/ssh.exe -p jump_port jump_username@jump_ip -W %h:%p
cat /root/.ssh/id_*.pub | ssh user@ip 'cat >> .ssh/authorized_keys'
即可
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。