这个问题说明了一切。
如何打开VS Code编辑器
windows cmd Linux和MAC终端
例如,为记事本++我写
>开始记分卡+测试。txt
顺便说一下,编辑器很棒(跨平台)!谢谢你,纳德拉!
你可以从微软下载
这个问题说明了一切。
如何打开VS Code编辑器
windows cmd Linux和MAC终端
例如,为记事本++我写
>开始记分卡+测试。txt
顺便说一下,编辑器很棒(跨平台)!谢谢你,纳德拉!
你可以从微软下载
当前回答
在Ubuntu上,flatpak版本似乎坏了。我卸载了它,并从微软下载了deb包。
其他回答
根据文档:
Mac OS X Download Visual Studio Code for Mac OS X. Double-click on VSCode-osx.zip to expand the contents. Drag Visual Studio Code.app to the Applications folder, making it available in the Launchpad. Add VS Code to your Dock by right-clicking on the icon and choosing Options, Keep in Dock. Tip: If you want to run VS Code from the terminal, append the following to your ~/.bash_profile file (~/.zshrc in case you use zsh). code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;} Now, you can simply type code . in any folder to start editing files in that folder. Tip: You can also add it to VS Code Insiders build by changing "com.microsoft.VSCodeInsiders". Also if you don't to type the whole word code, just change it to c. Linux Download Visual Studio Code for Linux. Make a new folder and extract VSCode-linux-x64.zip inside that folder. Double click on Code to run Visual Studio Code. Tip: If you want to run VS Code from the terminal, create the following link substituting /path/to/vscode/Code with the absolute path to the Code executable sudo ln -s /path/to/vscode/Code /usr/local/bin/code Now, you can simply type code . in any folder to start editing files in that folder.
删除旧的虚拟环境,创建新的虚拟环境。
在linux中,你首先需要检查vscode二进制文件的名称是什么
当你得到二进制文件名时,使用下面的命令检查它在哪里: 那儿离your_file_name
转到/(根目录),转到bin,用任何你想要的名字重命名文件。 重命名:mv your_file_name your_changed_name 现在你可以在终端的任何地方访问vscode
这在基于Debian的操作系统上绝对有效
窗口:
在系统环境变量中添加代码CLI路径。
在windows默认代码cli路径是(用户名是你的pc用户名)C:\Users\username\AppData\Local\Programs\Microsoft VS code \bin
然后你可以像这样检查你的项目文件夹,打开新的cmd并键入代码。
这是可行的。这是你的目录名,Directory_Name
sudo code --user-data-dir="Directory_Name"