1. vscode技巧
- 对比两个文件的代码差异
在vsode中选中两个文件,右击选择compare selected - 取消文件窗口覆盖
在设置中搜索 workbench.editor.Enable Preview,并将它取消勾选。 - 取消宏定义下面代码的变暗
- 用VSCode打开C++项目时出现【can not open source file xxx/xxx.h】问题
解决办法:
CTRL+P
输入:ext install ms-iot.vscode-ros
下载插件
CTRL+P
输入:c_cpp_properties.json
将.h文件路径添加到c_cpp_properties.json
中即可。
例如:{ "configurations": [ { "name": "Linux", "includePath": [ "${workspaceFolder}/**", "/opt/ros/noetic/include/**", "/home/jetson/shd/visp-ws/visp-build/**", "/usr/include/**", "/usr/local/include/**" ], "defines": [], "compilerPath": "/usr/bin/gcc", "cStandard": "c17", "cppStandard": "gnu++14", "intelliSenseMode": "linux-gcc-arm64" } ], "version": 4 }
2. csdn 写作技巧
一些技巧
- 代码块与列表对齐
在````和代码整体加tab,如int a=0;
- 图片大小
结尾加入:空格=128x128
- 页面内任意地方跳转
(1)复制链接
在目录处右击某标题复制链接。
(2)用超链接进行跳转。 - LaTex公式角标
- LaTex公式行距
直接在//后面设置如:\\[10mm]