ide

centos7 Golang vim IDE

匿名 (未验证) 提交于 2019-12-03 00:29:01
接触Golang之后使用过许多的编辑器比如lite,sublime3,goland,lite更适合在windows环境使用,对于非destop版本的Linux就不太适用了,在linux下还是直接上神器vim了,为了快速开发自然要安装许多便捷的插件 首先vim的插件安装有两种形式,一直直接自己安装到~/.vim/plugin目录下 另外一种是使用插件管理器Vundle(还有其他的插件管理器) //hello.go package main import "fmt" func main() { } gmarik/Vundle.vim pathogen mkdir ~/.vim/bundle git clone https://github.com/gmarik/Vundle.vim.git ~/.vimrc 附录为完整的.vimrc文件 filetype off filetype plugin indent off set rtp+=$VIM/vimfiles/bundle/vundle/ "rc后的参数表示Vundle自动下载安装插件的位置,为空放在~/.vim/下 call vundle#rc('$VIM/vimfiles/bundle/') Bundle 'gmarik/vundle' filetype plugin indent on syntax on ~/.vimrc

How to get output of exe in python script?

◇◆丶佛笑我妖孽 提交于 2019-12-03 00:28:49
When I call an external .exe program in Python, how can I get printf output from the .exe application and print it to my Python IDE? gimel To call an external program from Python, use the subprocess module. The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. An example from the doc ( output is a file object that provides output from the child process.): output = subprocess.Popen(["mycmd", "myarg"], stdout=subprocess.PIPE).communicate()[0] A concrete example, using cmd , the Windows command line interpreter with 2

How to make cscope display full file paths during search

醉酒当歌 提交于 2019-12-03 00:28:00
When I search for a C symbol or global definition using cscope , it displays the file-names and line numbers. I would like to see the full file-paths so that I can jump to my arch specific file. For example, when searching for global definition of __switch_to on cscope build on Linux code-base, I get: Global definition: __switch_to File Line 0 process.c 297 struct task_struct *__switch_to(struct task_struct *prev, 1 switch_to.h 44 #define __switch_to(prev,next,last) do { \ 2 process.c 202 struct task_struct *__switch_to(struct task_struct *old, 3 process.c 400 struct task_struct *__switch_to

需要sudo 运行的程序的IDE设置

匿名 (未验证) 提交于 2019-12-03 00:26:01
很多这样的情况,一个经典的例子是,开80端口的http server,在IDE中的调试。 以python pyCharm 为例,解决方法大致有三种: 用sudo 打开 IDE 缺点是IDE新建的文件owner将是root,并且和git 一起用可能会有问题 新建脚本 sudo python ,然后在pycharm 中用此脚本作为解释器 缺点是调试时不能终止程序(调试器和IDE 一样是非root权限,所以无权终止程序) 设置net-cap 使程序在bind lower port 时,不再需要root权限 参考: 这篇三种方法都有提: https://stackoverflow.com/questions/14299509/debugging-in-pycharm-with-sudo-privileges 这篇是第二种方法的具体操作: https://esmithy.net/2015/05/05/rundebug-as-root-in-pycharm/ 文章来源: 需要sudo 运行的程序的IDE设置

Ubuntu 18下C/C++ IDE之CodeLite安装

匿名 (未验证) 提交于 2019-12-03 00:22:01
Ubuntu 18下C/C++ IDE之CodeLite 安装方法 如下: sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc sudo apt-add-repository 'deb https://repos.codelite.org/ubuntu/ bionic universe' sudo apt-get update sudo apt-get install codelite wxcrafter 运行上述命令后,CodeLite即安装完成,然后在终端输入codelite即可打开CodeLide IDE。亦可在左下角的“显示应用程序”中找到CodeLite的快捷方式,通过快捷方式打开CodeLite。 文章来源: Ubuntu 18下C/C++ IDE之CodeLite安装

Ubuntu 18下C/C++ IDE之CodeLite安装

匿名 (未验证) 提交于 2019-12-03 00:22:01
Ubuntu 18下C/C++ IDE之CodeLite 安装方法 如下: sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc sudo apt-add-repository 'deb https://repos.codelite.org/ubuntu/ bionic universe' sudo apt-get update sudo apt-get install codelite wxcrafter 运行上述命令后,CodeLite即安装完成,然后在终端输入codelite即可打开CodeLide IDE。亦可在左下角的“显示应用程序”中找到CodeLite的快捷方式,通过快捷方式打开CodeLite。 文章来源: Ubuntu 18下C/C++ IDE之CodeLite安装

android 报错 This Gradle plugin requires a newer IDE able to request IDE model level 3 错误解决方案

匿名 (未验证) 提交于 2019-12-03 00:19:01
android studio 导入项目时报错 This Gradle plugin requires a newer IDE able to request IDE model level 3 报错。 解决方法: (1): 升级android studio IDE的版本。 (2):在项目的gradle.properties配置文件中加入以下这句: gradle.properties中:android.injected.build.model.only.versioned = 3 文章来源: android 报错 This Gradle plugin requires a newer IDE able to request IDE model level 3 错误解决方案

VScode 配置为 LaTeX IDE

匿名 (未验证) 提交于 2019-12-03 00:17:01
ctrl+shift+x 调出应用商店,搜索并安装如下扩展: LaTeX Workshop ; pdf-formatter LaTeX Preview LaTeX文件 .tex 的编译、预览、辅助文件的清理等都在扩展 latex workshop 中设置。 LaTeX Workshop 中,编译LaTeX文件时顺序执行的一系列/组命令称为LaTeX食谱(recipes),定义在 latex-workshop.latex.recipes 。缺省情况,LaTeX Workshop包含2个基本的食谱,分别由 latex-workshop.latex.recipes 和 latex-workshop.latex.Tools 定义。第一个食谱的 tools 域中的工具定义在第二个食谱。 latex workshop 的参数含义见 LaTeX Workshop 的配置文件"package.json"或 https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-recipes 了解配置情况。 LaTeX Workshop 默认的编译方式为 latexmk 和 pdflatex 。如下配置修改了 latex workshop 的编译方式、预览、辅助文件等。特别添加了xelatex及包含bib时的编译。 ctrl+shift+p -

I am looking for tips for learning Vim or Emacs the smart way

谁说胖子不能爱 提交于 2019-12-03 00:14:25
问题 I am a quite happy user of Eclipse (I mostly develop in PHP and Python), however I found the answers to "What specific productivity gains does Vim/Emacs provide over GUI text editors?" interesting enough to make me wish to try out Vim or Emacs as well and see if they would turn out to be a better solution for me. I have the general feeling that Vim and Emacs are not the kind of editor you learn by "playing with it" though. I have the impression you must dedicate some time and effort to "study

Setting up Emacs for programming Erlang

好久不见. 提交于 2019-12-03 00:10:35
Emacs is the IDE of choice for programming Erlang. There are plenty of good modes (distel, erlware-mode, the default erlang mode,...), but what are your recommendations for setting up Emacs for professional Erlang development? Set up erlang-mode as described in the README , and then activate Flymake: (require 'erlang-flymake) That gives you highlighting of warnings and errors as you type. I'd recommend using erlang-mode from the latest Erlang/OTP release (R14A as I type this), regardless of what release you normally use, as it evolves quite rapidly and is now just as good as erlware-mode, IMHO