当前位置: 首页 > news >正文

VS Code使用教程

链接远程服务器

https://blog.csdn.net/zhaxun/article/details/120568402

免密登陆服务器

1生成客户机(个人PC)密令

ssh-keygen -t rsa

生成的文件在主目录的.ssh文件当中。

查看密令并复制到linux系统当中

cat id_rsa.pub 

在这里插入图片描述

2复制到服务器中

echo "xxxx" >> ~/.ssh/authorized_keys

"XXX"代表的是客户机中生成的密令。
然后重启服务器的ssh服务。

sudo service sshd restart

3测试

commond(ctrl)+shit+P -> Reload Window -> Enter
在这里插入图片描述
不需要密码,流畅进入。

unable to watch for file changes in this large workspace问题

在这里插入图片描述
官方解决方案如下:
官方方案

“Visual Studio Code is unable to watch for file changes in this large workspace” (error ENOSPC)
When you see this notification, it indicates that the VS Code file watcher is running out of handles because the workspace is large and contains many files. Before adjusting platform limits, make sure that potentially large folders, such as Python .venv, are added to the files.watcherExclude setting (more details below). The current limit can be viewed by running:

cat /proc/sys/fs/inotify/max_user_watches

The limit can be increased to its maximum by editing /etc/sysctl.conf (except on Arch Linux, read below) and adding this line to the end of the file:

sudo vim /etc/sysctl.conf

在最下面加上这句话。

fs.inotify.max_user_watches=524288

The new value can then be loaded in by running sudo sysctl -p. #加载新的值

While 524,288 is the maximum number of files that can be watched, if you’re in an environment that is particularly memory constrained, you may want to lower the number. Each file watch takes up 1080 bytes, so assuming that all 524,288 watches are consumed, that results in an upper bound of around 540 MiB.

http://www.lryc.cn/news/257492.html

相关文章:

  • StarRocks数据模型之主键模型(当前版本v3.1)
  • 正确使用React组件缓存
  • AMEYA360:大唐恩智浦荣获 2023芯向亦庄 “汽车芯片50强”
  • 在Arch Linux上安装yay
  • PHP案例:探究MySQL应用开发喜好的网络调查
  • 力扣第374场周赛题解
  • Linux Docker 安装Nginx
  • 鸿蒙应用开发(二)环境搭建
  • 在 Qt Creator 中编写 Doxygen 风格的注释
  • NSS [NSSCTF 2022 Spring Recruit]babyphp
  • ToolkenGPT:用大量工具增强LLM
  • 2022蓝桥杯c组求和
  • Altium Designer学习笔记11
  • TTS | 2019~2023年最新增强/生成情绪的语音合成调研(20231211更新版)
  • 搜狗输入法v模式 | 爱莉希雅皮肤
  • 2023年阿里云云栖大会-核心PPT资料下载
  • JavaScript实战:制作一个待办事项列表应用
  • 4面百度软件测试工程师的面试经验总结
  • textarea文本框回车enter的时候自动提交表单,根据内容自动高度
  • dubbo框架技术文档-《spring-boot整合dubbo框架搭建+配置文件》框架的本地基础搭建
  • 中通快递单号查询入口,将指定某天签收的单号筛选出来
  • MySQL-含json字段表和与不含json字段表查询性能对比
  • 如何用Docker快速搭建本地开发环境
  • SpringDataJPA基础
  • 程序员如何成为自由的独立开发者?
  • Ant Design Vue(v1.7.8)a-table组件的插槽功能
  • 笔记69:Conv1d 和 Conv2d 之间的区别
  • 关于马达保护器 的选型 你知道吗
  • springboot(ssm高校竞赛管理系统 在线竞赛平台 Java系统
  • SDXL使用animateDiff和hotshot-xl进行文生视频