首页 > 其他分享 >vscode snippets

vscode snippets

时间:2024-07-30 08:56:40浏览次数:7  
标签:body description vscode snippet prefix another snippets

snippets\cpp.json


{
	// Place your snippets for cpp 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"
	// }
}

snippets\juliamarkdown.json


{
	// Place your snippets for juliamarkdown 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:
	
}

snippets\markdown.json


{
	// Place your snippets for markdown 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:
	"insert code snippet": {
		"prefix": "ic",
		"body": [
			"```${1}",
			"${2}",
			"```",
			"${0}",
			
		],
		"description": "insert code snippet"
	}
}

snippets\zz.bat


set "scriptPath=%cd%" 
D: && cd D:\dotnet.-script\App\bin\Debug\net8.0\ && D:\dotnet.-script\App\bin\Debug\net8.0\App.exe  "%scriptPath%"   "Question"


  












标签:body,description,vscode,snippet,prefix,another,snippets
From: https://www.cnblogs.com/zhuoss/p/18331489

相关文章

  • VSCode 的 Python 扩展中更详细的属性提示
    假设我有一个对象args由parser.parse_args()返回,并且它应该具有像args.port=6001、args.seed=1234这样的属性。当我在VSCode中按args.时,port和seed不会显示在建议的属性列表中,因为这些属性可能会......
  • vscode 创建QT最简工程
    1.前提条件qt安装cmake安装参考:https://blog.csdn.net/qq_51355375/article/details/139890889vscode环境配置参考:https://blog.csdn.net/qq_51355375/article/details/1407334952.工程创建include放头文件src.cpp文件CMakeList.texcmake配置文件工程结构按......
  • vscode-react-javascript-snippets
    SnippetsSnippetsinfoEveryspaceinside {} and () meansthatthisispushedintonextline:) $ representeachstepafter tab.TypeScript hasowncomponentsandownsnippets.Usesearchorjusttype ts beforeeverycomponentsnippet.I.E. t......
  • typescript: vscode create project
       npmcreatevue@latestcdvue-projectnpmi-Dtypescriptnpminstall-gtypescriptts-nodenpminstallwebpack-gnpminstall-g@vue/clinpminstall-gtypescripttsc--versionnpminstall--gcreate-vueornpminstall--g@vue/clinp......
  • STM32开发环境配置记录——关于PlatformIO + VSCode + CubeMX的集成环境配置
    前言​ 为什么配置这样的一个环境呢?鄙人受够了Keil5那个简陋的工作环境了,实在是用不下去,调试上很容易跟CubeMX的代码产生不协调导致调试——发布代码不一致造成的一系列问题。CubeIDE虽说不错,但是它的代码辅助功能和构建系统实在不敢恭维,经常出现Makefile未同步导致符号定义冲突,......
  • 在 VSCode 中激活 conda env 时,“which python”和“sys.path”给出不同的输出
    当我激活condaenv时,选择相应的解释器并在VScode中启动Python乍一看一切似乎都很好:(My_env)name@my_computer:~/Bureau/My_env/Code/current_dir$/home/name/anaconda3/envs/My_env/bin/python-mIPython--no-autoindentPython3.12.4|packagedb......
  • vscode-CodeGeeX AI在vscode运用
    1.CodeGeeX代码自动生成和补全,代码翻译,自动添加注释,智能问答等 2.vscode中使用  3.官方网址https://codegeex.cn/downloadGuide#vscode进行登录注册使用,个人免费 ......
  • 2024年5款VSCode实用扩展推荐
    1.GitHubCopilot扩展说明:您可以在VisualStudioCode中使用Copilot来生成代码、修复错误、询问有关代码的问题等等。地址:https://marketplace.visualstudio.com/items?itemName=GitHub.copilot2.AIFlowchart2024扩展说明:AIFlowchart它可以帮助您使用Mermaid.js语......
  • 【教程】vscode添加powershell7终端
    win10自带的powershell是1.0版本的,太老了,更换为powershell7后,在vscode的集成终端中没有显示本篇教程记录在vscode添加powershell7终端的过程打开vscode终端配置然后来到这个页面进行设置查看powershell7的安装位置,并关闭以管理员身份启动寻找下面的设置(找......
  • VScode利用EIDE和cortex-debug进行stm32开发(也适用51)
    文章目录前言必要准备第一步:安装vscode插件——EIDEEIDE是什么EIDE的下载**EIDE的配置(重点)**EIDE功能的简单介绍1.项目的建立:新建项目或者导入项目2.为项目选择[芯片支持包](https://em-ide.com/zh-cn/docs/modules/chip_pkg)(不是必须)3.构建配置4.[烧录配置](https://e......