windows下mingw的复制粘贴

        这两天在学习Git的使用,在windows环境下,使用了Atlassian的软件Sourcetree来作为git客户端。SourceTree使用的终端是MINGW32,在MINGW32的默认设置中不能进行复制粘贴,下附解决方案。转自http://blog.chinaunix.net/uid-24709751-id-4032541.html

         Right-click on the title bar of the command window and select 'Properties', then on the 'Options' tab tick the box for the 'QuickEdit mode', then click 'Ok' and select that the changes should apply to all windows using the same name.After that you can paste text from the clipboard using the right mouse-button, highlight text while holding the left mouse-button and copy selected text using the ENTER key.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在 VS Code 中编译 C 语言程序,需要安装 C 语言编译器。常见的 C 语言编译器有 GCC 和 Clang。 以下是在 VS Code 中编译 C 语言程序的步骤: 1. 安装 C 语言编译器。如果你使用的是 Windows 系统,可以下载安装 MinGW-w64。如果你使用的是 macOS,可以通过 Homebrew 安装 GCC 或 Clang。如果你使用的是 Linux 系统,可以通过包管理器安装。 2. 在 VS Code 中打开 C 语言源代码文件。 3. 在 VS Code 中按下 Ctrl + Shift + P(Windows 和 Linux)或 Command + Shift + P(macOS),打开命令面板。 4. 在命令面板中输入“Tasks: Configure Task”,选择“Configure Task”命令,然后选择“Create tasks.json file from template”选项。 5. 在弹出的菜单中选择“Others”。 6. 在打开的 tasks.json 文件中,将以下代码复制并粘贴到文件中: ``` { "version": "2.0.0", "tasks": [ { "label": "Build C", "type": "shell", "command": "gcc", "args": [ "-g", "${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}" ], "group": { "kind": "build", "isDefault": true } } ] } ``` 7. 保存并关闭 tasks.json 文件。 8. 在 VS Code 中按下 Ctrl + Shift + B(Windows 和 Linux)或 Command + Shift + B(macOS),选择“Build C”任务。 9. 如果一切正常,你将在终端中看到编译结果,并在当前目录下生成一个可执行文件。 注意:在 Windows 中,需要将 MinGW-w64 的 bin 目录添加到系统环境变量中,才能在命令行中使用 gcc 命令。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值