ide

Enum as @param type in JSDoc

自古美人都是妖i 提交于 2020-01-29 02:40:27
问题 Is it possible to use an enum for the JSDoc @param type declaration like in the following example? /** * @enum { Number } */ var TYPES = { TYPE_A: 1, TYPE_B: 2 } /** * @param { TYPES } type */ function useTypesEnum( type ) { } If I use an IDE like Eclipse etc. for JavaScript, there should no warning be raised? 回答1: JsDoc comments have no impact on JavaScript code. What it does influence is some tools designed to use that information. Two of the tools that work with JsDoc comments are the

How does Geany auto-completion wơrk?

懵懂的女人 提交于 2020-01-28 05:35:06
问题 This question might seem a bit odd but I searched for like an hour and didn't find any hit that actually answered my question(s) about the auto-complete features of geany: does it have auto-complete for which languages does it have auto-complete (plugins?) how do i use auto-complete 回答1: Geany does have autocomplete. The main way autocomplete is used is by typing a long word, and by narrowing that list of autocomplete possibilities down. Let's say you type gtk_combo_box_. It will have a small

Run Turbo C++ in Freedos

ε祈祈猫儿з 提交于 2020-01-26 04:01:10
问题 I want to run Turbo C++ in FreeDos . I used to run it in DosBox but now I decided to test the FreeDos in my desktop PC. But every time I try run it the cursor blinks and nothing happens (after I enter the command and press enter) , the prompt does not return( C:> ) and I have to restart my system by pressing the power button. My question is: How can I actually run it? Does it require extra drivers or files? If it cannot be run, Do you any other C++ IDE? Maybe your own IDE? P.S. I have

How do I find declarations/definitions without an IDE?

ε祈祈猫儿з 提交于 2020-01-25 22:00:09
问题 I've been using the Eclipse IDE for a few years now. When programming in C I'm used to Ctrl+Click on a symbol and Eclipse takes me to the file and line of the symbol's declaration. Without an IDE, how do I achieve this? I'm using gcc to compile a massive FOSS project with hundreds of header files. Looking though the C files, I see functions that I would like to know more about. Finding the header file that declares said function is a tedious and manual task. Not to mention manual

Code Editor using ANTLR

梦想与她 提交于 2020-01-25 11:20:46
问题 I'm in the process of writing a code editor for a custom language. We're using ANTLR for the lexer and parser, and CodeMirror for the editor framework (running in a browser). I can do some basic things like syntax coloring of keywords, as well as providing rudimentary code completion. What I'm finding is that the user is frequently in the middle of editing something, so the ANTLR parser is not very useful since the current input stream is not fully parseable (and often leads ANTLR down the

Linux应用开发入门(转)

风格不统一 提交于 2020-01-25 08:01:54
今天偶然看到这篇文章,做个入门了解还是不错的。 前 一阵子在QQ上和朋友聊天的时候,总会看到有人说Linux上的应用程序开发是高手才可以完成的,而且这种“迷信”在目前似乎还很普遍。然而,情况并不是这样的,从程序库的支持方面,Linux平台为用户级应用程序的开发提供了很多功能强大且丰富的程序库,而且它们大部分是跨平台的(Boost、OpenGL、STL、Qt、Java等)和基于POSIX标准的(glibc等),同时Linux内核还为驱动程序的开发提供了功能完备的内核接口,从开发工具方面,Linux提供了功能强大的编译器GCC和调试器GDB,借助它们的帮助,我们可以很轻松的在Linu x上开发出可移植性的应用程序。既然如此,“迷信”又源于何来呢?我想,一方面由于详细介绍Linux各种开发的书籍较少,各种Linux应用在国内仍不普及,另一方面则是由于很多人在安装好一个Linux后,苦于找不到一个得心应手的IDE环境,从而感到不知所措,毕竟,我们很多人都习惯了写好程序后,按下F5,剩下的任务就让IDE全权代理了。其实想在Linux下如此这般当然也没问题。既然说到了IDE,就让我们从它开始吧,相信选择一个好的IDE环境是你整个学习过程的一个不错的开始。 工欲善其事 必先利其器——IDE篇 其实Linux下有许多功能强大的IDE环境,因为从某种意义上说,Linux是专为开发者准备的操作系统

Edit non-project files in IntelliJ

风流意气都作罢 提交于 2020-01-25 00:42:16
问题 I've been trying to edit a non-project file using IntelliJ Community Edition 2016.3, and I cannot get around the write only protection. I do not get a pop-up asking whether I would actually like to edit the non-proj file, as seen in this post: Intelij 15 edit non project files by default And I've also installed the Non Project Files Unlocker plugin, unfortunately it did not seem to have an impact (yes I restarted the IDE). If anyone has had the same experience or if someone has a workaround

IntelliJ Tomcat Run Configuration Does Not Set Environment Variables

会有一股神秘感。 提交于 2020-01-24 20:28:45
问题 I am running Tomcat 8.0.35 on OS X with IntelliJ Ultimate 2016.1.2. I want to run Tomcat locally under the debugger and deploy my web application to it. I created a local Tomcat Server run configuration. In the Deployment tab I specified the WAR file to deploy. My web application requires REDIS_HOST_MM and REDIS_PORT_MM environment variables to be set. I set these in the Startup/Connection tab of the run configuration. Tomcat starts and my web application deploys, however, the environment

将VIM配置为IDE

别来无恙 提交于 2020-01-24 04:23:55
前言 我们在服务器上做开发时,可以选择使用字符界面或者GUI界面。 由于远程GUI界面比较吃资源,因此其流畅度和本地操作系统的GUI界面相差甚远,使用体验往往不尽人意。 因此,一般首选字符界面做开发,VIM 编辑器是字符界面下的一款神器。 VIM 编辑器在配置好各种插件后,可以媲美 Windows 下功能强大的 IDE 而又不显得臃肿。 本文的配置非常方便快捷,Ubuntu 下只需通过 apt 安装 ctags 和 cscope ,再修改 .vimrc 配置文件即可, 几分钟内 就能将 VIM 配置成 IDE。 本文配置的 VIM 编辑器的 最终效果 如下图,使用了 NerdTree、TagList、MiniBufExplorer、SourceExplorer 这几个插件。 安装 ctags 和 cscope 在命令行输入下面两条命令安装 ctags 和 cscope: $ sudo apt install ctags $ sudo apt install cscope 使用 ctags 和 cscope 在代码目录下生成符号库,可以帮助我们在 VIM 编辑器中查找变量、函数等的定义,进行跳转。 上面两条命令执行完毕后,进入代码项目所在目录,执行下面的命令生成 tags 文件: $ ctags -R . 执行下面的命令生成 cscope 的符号索引数据库: $ cscope

Arduino upload error “stk500_recv(): programmer is not responding” in Fedora

試著忘記壹切 提交于 2020-01-24 02:26:07
问题 I am attempting to upload the stock Blink sketch using the Arduino IDE in Fedora Core 15 Linux. I get this error: avrdude: stk500_recv(): programmer is not responding To recreate the issue: Plug in the Arduino Uno board via USB cable Open the Arduino IDE Menu File → Examples → 1. Basics → Blink Menu Tools → Serial Port → then check the box for /dev/ttyACM0 Menu Tools → Board → Arduino Uno Click the "Play" button to Verify/Compile (this step is successful) Click the Upload button, to get the