vs code使用教程vscode免费使用copilotvscode升级gpt4-o1VS code使用.ipynbjupyter notebook)教程vscode调试jupytervscode debug报错Couldnt find a debug adapter descriptor for debug type Python Kernel Debug Adapter (extension might have failed to activate)链接远程服务器免密登陆服务器-手动1mac生成客户机个人PC密令2复制到服务器中3测试vsCode debug相关vscode调试如何进入函数内部vscode python远程debug和选环境远程debug如何插入命令行参数第一步、安装python debugger工具添加launch.json配置文件vscode debug的时候 相对路径问题unable to watch for file changes in this large workspace问题最新vscode1.86无法远程SSH连接服务器解决方案方案一方案二vscode如何设置字体大小配置python文件的头信息vscode无法选择conda环境pydevd warningsetting the PYDEVD_WARM。。。ssh选项扩展无法显示ssh无法连接左侧没有远程链接remote-home按钮root创建的用户无法免密登陆vscode免费使用copilot1、github学生认证copilot自行百度学生认证过程提供学历图片的时候拍一个带头像的校园卡可以通过实测2、vscode安装github copilot扩展3、vscode左下角登陆github账户4、为copilot扩展释放权限-enabletutorial:https://code.visualstudio.com/docs/copilot/getting-startedcopilot基本使用方法1、直接在编程时会出现一些自动提示通过’tab’键可以直接使用2、通过‘commandi’针对文件中的某一行调用chat进行提问inline chat模式commandenter’对建议代码进行选用3、通过’commandctrli’调用针对当前文件的chat进行全局提问vscode升级gpt4-o1连接中申请后等待即可https://github.blog/changelog/2024-10-29-openai-o1-is-now-available-in-github-copilot-chat-in-public-preview/VS code使用.ipynbjupyter notebook)教程您可以通过运行 Jupyter 创建 Jupyter Notebooks从命令面板CtrlShiftP选择** Jupyter: Create Blank New Jupyter Notebook **命令或在工作区创建新文件.ipynb。选择运行内核点击右上角选择内核注意可以选择网页版本jupyter notebook已经配置好的内核或者codda环境。对于jupyter中已经配置好的内核会直接使用。而对于conda环境的内核第一次选择时如果没有安装过ipykernel会默认帮你安装ipykernel之后才可以使用。也可以自行安装pip install ipykernelvscode调试jupyter官方文档https://code.visualstudio.com/docs/datascience/jupyter-notebooks#_debug-a-jupyter-notebook方法一逐行运行1、To start, select theRun by Line buttonin the cell toolbar2、‘run next line’ button依次执行即可。3、Continue button执行到结束You can select the cell Stop button to stop early, or the Continue button in the toolbar to continue running to the end of the cell.4、stop button结束此次执行过程方法二如果你想使用类似于VScode当中完整的dubug功能例如设置断点通过debug cellIf you want to use the full set of debugging features supported in VS Code, such as breakpoints and the ability to step in to other cells and modules, you can use the full VS Code debugger.Start by setting any breakpoints you need by clicking in the left margin of a notebook cell.Then select the Debug Cell button in the menu next to the Run button. This will run the cell in a debug session, and will pause on your breakpoints in any code that runs, even if it is in a different cell or a .py file.You can use the Debug view, Debug Console, and all the buttons in the Debug Toolbar as you normally would in VS Code.vscode debug报错Couldn’t find a debug adapter descriptor for debug type ‘Python Kernel Debug Adapter’ (extension might have failed to activate)Couldn’t find a debug adapter descriptor for debug type ‘Python Kernel Debug Adapter’ (extension might have failed to activate)如果遇到这个问题尝试先运行一下jupyter格子内的代码然后再使用debug另外文件加重.vscode内的内容如下下述两个都能运行核心是先运行一下。{//Use IntelliSense to learn about possible attributes.//Hover to view descriptions of existing attributes.//For more information,visit:https://go.microsoft.com/fwlink/?linkid830387version:0.2.0,configurations:[{name:Python Debugger: Python File,type:node,request:launch,program:${file}//env:{//PYDEVD_DISABLE_FILE_VALIDATION:1//}}]}{//Use IntelliSense to learn about possible attributes.//Hover to view descriptions of existing attributes.//For more information,visit:https://go.microsoft.com/fwlink/?linkid830387version:0.2.0,configurations:[{name:Python Debugger: Python File,type:python,request:launch,program:${file},console:integratedTerminal//env:{//PYDEVD_DISABLE_FILE_VALIDATION:1//}}]}链接远程服务器https://blog.csdn.net/zhaxun/article/details/120568402http://t.csdnimg.cn/hZBvd添加链接描述免密登陆服务器-手动1mac生成客户机个人PC密令ssh-keygen-trsa-t代表生成密令的文件名默认也是rsa生成的文件在主目录的.ssh文件当中。cd ~ cd .ssh查看密令并复制到linux系统当中cat id_rsa.pub2复制到服务器中echoxxxx~/.ssh/authorized_keysXXX代表的是客户机中生成的密令。也可以通过复制pc上的id_rsa.pub 到服务器端的/.ssh/文件夹下然后直接改名authorized_keys这样出错的概率小一些。然后重启服务器的ssh服务。servicesshd restart在终端界面输入service sshd start。如果结果显示:ssh:unrecognized service。输入查看命令 service ssh status显示也是 unrecognized service。是因为没有开启ssh服务。开启ssh服务终端界面键入sudo /etc/init.d/ssh restart(或sudo /etc/init.d/ssh start)3测试commond(ctrl)shitP - Reload Window - Enter不需要密码流畅进入。vsCode debug相关vscode调试如何进入函数内部用vscode给远程的服务器安装一个python环境的包即可vscode python远程debug和选环境运行时报错找不到文件可能是相对路径错误只要你在每次使用 Code Runner 调试时 cd 一下进入对应的文件夹就可以正常运行的。如果需要更高级的修改可以参考下面这篇文章。No such file or directory. 解决VSCode相对路径出错问题远程debug如何插入命令行参数通常我们直接运行vscode F5对代码进行调试的时候会出现无法插入命令行参数的问题这对于很多设计了命令行参数的代码不友好。因此可以通过python debug工具通过launch.json配置对程序进行调试。第一步、安装python debugger工具添加launch.json配置文件配置文件举例{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid830387version:0.2.0,configurations:[{name:Python: Current File,type:python,request:launch,program:${file},console:integratedTerminal,justMyCode:true},{name:Python: Debug,type:python,request:launch,program:${workspaceFolder}/run_batch.py,args:[-s,-l,chatgpt,-r,test,example,debatrix,0,1,3],console:integratedTerminal}]}配置完成后在运行的部分就会显示你配置的调试工具在 launch.json 文件中每个配置项都有不同的作用和配置选项。以下是常见的配置项及其说明 version配置文件的版本号目前为 0.2.0。 configurations调试器的配置列表包含多个调试配置项。 name调试配置的名称用于在 VS Code 中标识该配置。 type调试器的类型通常为 python表示使用 Python 调试器。 request调试请求的类型常用的值有 launch 和 attach表示启动调试器或附加到已运行的进程。 program要运行的程序的路径可以是相对路径或绝对路径。 args传递给程序的命令行参数。可以是一个数组也可以使用特殊的值如 input表示从文件中读取参数。 console控制台类型指定调试器输出的显示位置。常见的值有 internalConsole在 VS Code 的内部控制台中显示输出。 integratedTerminal在 VS Code 的集成终端中显示输出。 externalTerminal在外部终端中显示输出。 none不显示任何输出。 其他配置项根据需要还可以配置其他选项如调试器端口、环境变量等。 通过配置这些选项你可以定制调试器的行为以满足你的项目需求。 这些变量使得调试配置更加灵活和通用因为它们可以根据当前的编辑上下文动态地引用不同的文件和文件夹路径。在 launch.json 文件中${file} 和 ${workspaceFolder} 是 VS Code 提供的内置变量用于在program配置调试时引用当前文件和工作区文件夹的路径。 ${file}表示当前打开的文件的完整路径。在调试配置中使用 ${file} 将会引用当前正在编辑的文件的路径。 ${workspaceFolder}表示工作区文件夹的路径。如果你在一个工作区中打开了多个文件夹${workspaceFolder} 将会是主文件夹的路径。 justMyCode: true 是调试配置中的一个选项用于控制调试器在调试会话中仅显示与你自己编写的代码相关的调用栈和异常信息。具体来说当这个选项设置为 true 时调试器会忽略第三方库、框架等代码的调用栈只显示你自己编写的代码的调用栈信息。 这个选项在调试大型项目时特别有用因为它可以帮助你更快地定位和解决与你自己编写的代码相关的问题而不会被大量的第三方代码淹没。vscode debug的时候 相对路径问题假设我要debug当前文件目录下DataPreprocess当中的extract…py文件文件当中的…/ 相对路径无法使用方法就是json中通过cwd指定运行文件的目录为当前文件的运行目录${workspaceFolder}指的就是vscdoe当前远程连接的这个文件夹的目录。{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid830387version:0.2.0,configurations:[{name:Python Debugger: extract_logical_expressions_v2.py,type:debugpy,request:launch,program:${workspaceFolder}/DataPreprocess/extract_logical_expressions_v2.py,console:integratedTerminal,cwd:${fileDirname},//用于指定运行文件的目录// cwd: ${workspaceFolder},// env: { PYTHONPATH: ${workspaceFolder} }, //指的是运行文件的根目录}]}code文件名作为包会和系统标准的文件名起冲突注意。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_watchesThe 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:sudovim/etc/sysctl.conf在最下面加上这句话。fs.inotify.max_user_watches524288The new value can then be loaded in by runningsudo 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.最新vscode1.86无法远程SSH连接服务器解决方案20240203做实验的时候发现VS无法连接远程服务器查询官方文档得知最新版本的vs远程连接对运行库提出了新的要求。官方的解决方案有两种https://code.visualstudio.com/docs/remote/faq#_can-i-run-vs-code-server-on-older-linux-distributions方案一从 VS Code 1.86 版开始远程服务器构建工具链的最低要求提高了。VS Code 发布的预构建服务器兼容基于 glibc 2.28 或更高版本的 Linux 发行版例如 Debian 10、RHEL 8 和 Ubuntu 20.04。方案二如果您的设置不符合这些要求并且无法升级 Linux 发行版您可以将 VS Code 客户端降级到 1.85 版以继续使用远程开发功能。您可以在桌面和网络上降级 VS Code 客户端。同时ssh工具的版本也不能太新需要如下图版本即可举例对于Visual Studio CodeVSCode在macOS上安装通常是相对简单的过程可以按照以下步骤进行历时版本下载地址https://code.visualstudio.com/updates/v1_851.85.2是最后一个可以访问旧系统的版本。打开浏览器访问Visual Studio Code的官方网站https://code.visualstudio.com/。在网站上找到并点击 “Download for Mac”这将会下载一个.zip或.dmg文件。下载完成后打开下载的文件。如果是.dmg文件通常会弹出一个包含Visual Studio Code图标的窗口。将Visual Studio Code的图标拖拽到Applications应用程序文件夹中完成安装。如果已经安装过旧版本的VSCode新版本的安装会直接覆盖旧版本不需要手动卸载旧版本。打开Applications文件夹找到Visual Studio Code并打开。这样你就成功安装并启动了Visual Studio Code。VSCode通常会定期发布更新你可以在官方网站上下载最新版本进行安装安装过程基本相同。如果你有特定的插件或配置可能需要在升级前备份它们以免丢失。vscode如何设置字体大小settings - font配置python文件的头信息https://blog.csdn.net/weixin_43804047/article/details/119779655https://blog.csdn.net/weixin_49927493/article/details/118880460?spm1001.2101.3001.6650.1utm_mediumdistribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7EPaidSort-1-118880460-blog-119779655.235%5Ev43%5Epc_blog_bottom_relevance_base4depth_1-utm_sourcedistribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7EPaidSort-1-118880460-blog-119779655.235%5Ev43%5Epc_blog_bottom_relevance_base4utm_relevant_index2vscode无法选择conda环境首先安装python工具包去应用商店中搜索python然后选择切换python版本即可。或者重新安装pythonhttps://developer.baidu.com/article/details/2800569如果jupyter无法选择环境用同样的方法重新配置jupyter插件就可以了。pydevd warningsetting the PYDEVD_WARM。。。https://stackoverflow.com/questions/71695716/pydevd-warnings-in-visual-studio-code-debug-console修改launch.json文件设置debug提醒时间为2secondslaunch:{version:0.2.0,configurations:[{name:Python: Current File,type:python,request:launch,program:${file},console:integratedTerminal,env:{PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT:2}}]}ssh选项扩展无法显示安装vscode扩展remote explorer并且安装旧版本新版本不支持18.5.2ssh无法连接如果多次尝试密码都是是vscode的问题您可以将实例用户目录下的vscode环境文件删除再重新连接看看文件名应该是.vscode-server左侧没有远程链接remote-home按钮https://blog.csdn.net/hubojing/article/details/139009090root创建的用户无法免密登陆按照如下步骤尝试给用户授权给新用户sudo权限新创建的用户没有root权限我们执行以下命令给用户sudo权限sudo usermod-a-G adm username sudo usermod-a-G sudo username授权后重新按照下面的方法连接一下https://blog.csdn.net/savet/article/details/131683156
vsCode使用教程
vs code使用教程vscode免费使用copilotvscode升级gpt4-o1VS code使用.ipynbjupyter notebook)教程vscode调试jupytervscode debug报错Couldnt find a debug adapter descriptor for debug type Python Kernel Debug Adapter (extension might have failed to activate)链接远程服务器免密登陆服务器-手动1mac生成客户机个人PC密令2复制到服务器中3测试vsCode debug相关vscode调试如何进入函数内部vscode python远程debug和选环境远程debug如何插入命令行参数第一步、安装python debugger工具添加launch.json配置文件vscode debug的时候 相对路径问题unable to watch for file changes in this large workspace问题最新vscode1.86无法远程SSH连接服务器解决方案方案一方案二vscode如何设置字体大小配置python文件的头信息vscode无法选择conda环境pydevd warningsetting the PYDEVD_WARM。。。ssh选项扩展无法显示ssh无法连接左侧没有远程链接remote-home按钮root创建的用户无法免密登陆vscode免费使用copilot1、github学生认证copilot自行百度学生认证过程提供学历图片的时候拍一个带头像的校园卡可以通过实测2、vscode安装github copilot扩展3、vscode左下角登陆github账户4、为copilot扩展释放权限-enabletutorial:https://code.visualstudio.com/docs/copilot/getting-startedcopilot基本使用方法1、直接在编程时会出现一些自动提示通过’tab’键可以直接使用2、通过‘commandi’针对文件中的某一行调用chat进行提问inline chat模式commandenter’对建议代码进行选用3、通过’commandctrli’调用针对当前文件的chat进行全局提问vscode升级gpt4-o1连接中申请后等待即可https://github.blog/changelog/2024-10-29-openai-o1-is-now-available-in-github-copilot-chat-in-public-preview/VS code使用.ipynbjupyter notebook)教程您可以通过运行 Jupyter 创建 Jupyter Notebooks从命令面板CtrlShiftP选择** Jupyter: Create Blank New Jupyter Notebook **命令或在工作区创建新文件.ipynb。选择运行内核点击右上角选择内核注意可以选择网页版本jupyter notebook已经配置好的内核或者codda环境。对于jupyter中已经配置好的内核会直接使用。而对于conda环境的内核第一次选择时如果没有安装过ipykernel会默认帮你安装ipykernel之后才可以使用。也可以自行安装pip install ipykernelvscode调试jupyter官方文档https://code.visualstudio.com/docs/datascience/jupyter-notebooks#_debug-a-jupyter-notebook方法一逐行运行1、To start, select theRun by Line buttonin the cell toolbar2、‘run next line’ button依次执行即可。3、Continue button执行到结束You can select the cell Stop button to stop early, or the Continue button in the toolbar to continue running to the end of the cell.4、stop button结束此次执行过程方法二如果你想使用类似于VScode当中完整的dubug功能例如设置断点通过debug cellIf you want to use the full set of debugging features supported in VS Code, such as breakpoints and the ability to step in to other cells and modules, you can use the full VS Code debugger.Start by setting any breakpoints you need by clicking in the left margin of a notebook cell.Then select the Debug Cell button in the menu next to the Run button. This will run the cell in a debug session, and will pause on your breakpoints in any code that runs, even if it is in a different cell or a .py file.You can use the Debug view, Debug Console, and all the buttons in the Debug Toolbar as you normally would in VS Code.vscode debug报错Couldn’t find a debug adapter descriptor for debug type ‘Python Kernel Debug Adapter’ (extension might have failed to activate)Couldn’t find a debug adapter descriptor for debug type ‘Python Kernel Debug Adapter’ (extension might have failed to activate)如果遇到这个问题尝试先运行一下jupyter格子内的代码然后再使用debug另外文件加重.vscode内的内容如下下述两个都能运行核心是先运行一下。{//Use IntelliSense to learn about possible attributes.//Hover to view descriptions of existing attributes.//For more information,visit:https://go.microsoft.com/fwlink/?linkid830387version:0.2.0,configurations:[{name:Python Debugger: Python File,type:node,request:launch,program:${file}//env:{//PYDEVD_DISABLE_FILE_VALIDATION:1//}}]}{//Use IntelliSense to learn about possible attributes.//Hover to view descriptions of existing attributes.//For more information,visit:https://go.microsoft.com/fwlink/?linkid830387version:0.2.0,configurations:[{name:Python Debugger: Python File,type:python,request:launch,program:${file},console:integratedTerminal//env:{//PYDEVD_DISABLE_FILE_VALIDATION:1//}}]}链接远程服务器https://blog.csdn.net/zhaxun/article/details/120568402http://t.csdnimg.cn/hZBvd添加链接描述免密登陆服务器-手动1mac生成客户机个人PC密令ssh-keygen-trsa-t代表生成密令的文件名默认也是rsa生成的文件在主目录的.ssh文件当中。cd ~ cd .ssh查看密令并复制到linux系统当中cat id_rsa.pub2复制到服务器中echoxxxx~/.ssh/authorized_keysXXX代表的是客户机中生成的密令。也可以通过复制pc上的id_rsa.pub 到服务器端的/.ssh/文件夹下然后直接改名authorized_keys这样出错的概率小一些。然后重启服务器的ssh服务。servicesshd restart在终端界面输入service sshd start。如果结果显示:ssh:unrecognized service。输入查看命令 service ssh status显示也是 unrecognized service。是因为没有开启ssh服务。开启ssh服务终端界面键入sudo /etc/init.d/ssh restart(或sudo /etc/init.d/ssh start)3测试commond(ctrl)shitP - Reload Window - Enter不需要密码流畅进入。vsCode debug相关vscode调试如何进入函数内部用vscode给远程的服务器安装一个python环境的包即可vscode python远程debug和选环境运行时报错找不到文件可能是相对路径错误只要你在每次使用 Code Runner 调试时 cd 一下进入对应的文件夹就可以正常运行的。如果需要更高级的修改可以参考下面这篇文章。No such file or directory. 解决VSCode相对路径出错问题远程debug如何插入命令行参数通常我们直接运行vscode F5对代码进行调试的时候会出现无法插入命令行参数的问题这对于很多设计了命令行参数的代码不友好。因此可以通过python debug工具通过launch.json配置对程序进行调试。第一步、安装python debugger工具添加launch.json配置文件配置文件举例{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid830387version:0.2.0,configurations:[{name:Python: Current File,type:python,request:launch,program:${file},console:integratedTerminal,justMyCode:true},{name:Python: Debug,type:python,request:launch,program:${workspaceFolder}/run_batch.py,args:[-s,-l,chatgpt,-r,test,example,debatrix,0,1,3],console:integratedTerminal}]}配置完成后在运行的部分就会显示你配置的调试工具在 launch.json 文件中每个配置项都有不同的作用和配置选项。以下是常见的配置项及其说明 version配置文件的版本号目前为 0.2.0。 configurations调试器的配置列表包含多个调试配置项。 name调试配置的名称用于在 VS Code 中标识该配置。 type调试器的类型通常为 python表示使用 Python 调试器。 request调试请求的类型常用的值有 launch 和 attach表示启动调试器或附加到已运行的进程。 program要运行的程序的路径可以是相对路径或绝对路径。 args传递给程序的命令行参数。可以是一个数组也可以使用特殊的值如 input表示从文件中读取参数。 console控制台类型指定调试器输出的显示位置。常见的值有 internalConsole在 VS Code 的内部控制台中显示输出。 integratedTerminal在 VS Code 的集成终端中显示输出。 externalTerminal在外部终端中显示输出。 none不显示任何输出。 其他配置项根据需要还可以配置其他选项如调试器端口、环境变量等。 通过配置这些选项你可以定制调试器的行为以满足你的项目需求。 这些变量使得调试配置更加灵活和通用因为它们可以根据当前的编辑上下文动态地引用不同的文件和文件夹路径。在 launch.json 文件中${file} 和 ${workspaceFolder} 是 VS Code 提供的内置变量用于在program配置调试时引用当前文件和工作区文件夹的路径。 ${file}表示当前打开的文件的完整路径。在调试配置中使用 ${file} 将会引用当前正在编辑的文件的路径。 ${workspaceFolder}表示工作区文件夹的路径。如果你在一个工作区中打开了多个文件夹${workspaceFolder} 将会是主文件夹的路径。 justMyCode: true 是调试配置中的一个选项用于控制调试器在调试会话中仅显示与你自己编写的代码相关的调用栈和异常信息。具体来说当这个选项设置为 true 时调试器会忽略第三方库、框架等代码的调用栈只显示你自己编写的代码的调用栈信息。 这个选项在调试大型项目时特别有用因为它可以帮助你更快地定位和解决与你自己编写的代码相关的问题而不会被大量的第三方代码淹没。vscode debug的时候 相对路径问题假设我要debug当前文件目录下DataPreprocess当中的extract…py文件文件当中的…/ 相对路径无法使用方法就是json中通过cwd指定运行文件的目录为当前文件的运行目录${workspaceFolder}指的就是vscdoe当前远程连接的这个文件夹的目录。{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid830387version:0.2.0,configurations:[{name:Python Debugger: extract_logical_expressions_v2.py,type:debugpy,request:launch,program:${workspaceFolder}/DataPreprocess/extract_logical_expressions_v2.py,console:integratedTerminal,cwd:${fileDirname},//用于指定运行文件的目录// cwd: ${workspaceFolder},// env: { PYTHONPATH: ${workspaceFolder} }, //指的是运行文件的根目录}]}code文件名作为包会和系统标准的文件名起冲突注意。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_watchesThe 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:sudovim/etc/sysctl.conf在最下面加上这句话。fs.inotify.max_user_watches524288The new value can then be loaded in by runningsudo 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.最新vscode1.86无法远程SSH连接服务器解决方案20240203做实验的时候发现VS无法连接远程服务器查询官方文档得知最新版本的vs远程连接对运行库提出了新的要求。官方的解决方案有两种https://code.visualstudio.com/docs/remote/faq#_can-i-run-vs-code-server-on-older-linux-distributions方案一从 VS Code 1.86 版开始远程服务器构建工具链的最低要求提高了。VS Code 发布的预构建服务器兼容基于 glibc 2.28 或更高版本的 Linux 发行版例如 Debian 10、RHEL 8 和 Ubuntu 20.04。方案二如果您的设置不符合这些要求并且无法升级 Linux 发行版您可以将 VS Code 客户端降级到 1.85 版以继续使用远程开发功能。您可以在桌面和网络上降级 VS Code 客户端。同时ssh工具的版本也不能太新需要如下图版本即可举例对于Visual Studio CodeVSCode在macOS上安装通常是相对简单的过程可以按照以下步骤进行历时版本下载地址https://code.visualstudio.com/updates/v1_851.85.2是最后一个可以访问旧系统的版本。打开浏览器访问Visual Studio Code的官方网站https://code.visualstudio.com/。在网站上找到并点击 “Download for Mac”这将会下载一个.zip或.dmg文件。下载完成后打开下载的文件。如果是.dmg文件通常会弹出一个包含Visual Studio Code图标的窗口。将Visual Studio Code的图标拖拽到Applications应用程序文件夹中完成安装。如果已经安装过旧版本的VSCode新版本的安装会直接覆盖旧版本不需要手动卸载旧版本。打开Applications文件夹找到Visual Studio Code并打开。这样你就成功安装并启动了Visual Studio Code。VSCode通常会定期发布更新你可以在官方网站上下载最新版本进行安装安装过程基本相同。如果你有特定的插件或配置可能需要在升级前备份它们以免丢失。vscode如何设置字体大小settings - font配置python文件的头信息https://blog.csdn.net/weixin_43804047/article/details/119779655https://blog.csdn.net/weixin_49927493/article/details/118880460?spm1001.2101.3001.6650.1utm_mediumdistribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7EPaidSort-1-118880460-blog-119779655.235%5Ev43%5Epc_blog_bottom_relevance_base4depth_1-utm_sourcedistribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7EPaidSort-1-118880460-blog-119779655.235%5Ev43%5Epc_blog_bottom_relevance_base4utm_relevant_index2vscode无法选择conda环境首先安装python工具包去应用商店中搜索python然后选择切换python版本即可。或者重新安装pythonhttps://developer.baidu.com/article/details/2800569如果jupyter无法选择环境用同样的方法重新配置jupyter插件就可以了。pydevd warningsetting the PYDEVD_WARM。。。https://stackoverflow.com/questions/71695716/pydevd-warnings-in-visual-studio-code-debug-console修改launch.json文件设置debug提醒时间为2secondslaunch:{version:0.2.0,configurations:[{name:Python: Current File,type:python,request:launch,program:${file},console:integratedTerminal,env:{PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT:2}}]}ssh选项扩展无法显示安装vscode扩展remote explorer并且安装旧版本新版本不支持18.5.2ssh无法连接如果多次尝试密码都是是vscode的问题您可以将实例用户目录下的vscode环境文件删除再重新连接看看文件名应该是.vscode-server左侧没有远程链接remote-home按钮https://blog.csdn.net/hubojing/article/details/139009090root创建的用户无法免密登陆按照如下步骤尝试给用户授权给新用户sudo权限新创建的用户没有root权限我们执行以下命令给用户sudo权限sudo usermod-a-G adm username sudo usermod-a-G sudo username授权后重新按照下面的方法连接一下https://blog.csdn.net/savet/article/details/131683156