atom-editor

How to turn off snippets in Atom?

半世苍凉 提交于 2019-12-04 04:23:25
I've recently started using Atom . One problem I've run into is that there are too many / ambiguous snippets defined for Ruby. This makes tab completion worse, as you sometimes get a bit of irrelevant code instead of the name you wanted. I'm wondering how to turn off a specific snippet from the "Language Ruby" package, or failing that turning off all snippets. Preferably without disabling the Ruby package entirely. Sadly, there's currently no built-in feature for this kind of thing. Until some filter feature is added to the snippets package, the only way to access the snippets is to monkey

Getting user input while running a python script in atom

≡放荡痞女 提交于 2019-12-04 03:25:57
Not really sure whether I'm just not looking in the right place or whether this feature is yet to be implemented, but after installing the atom script package and testing it out on a program that requires user input, I realize that I can't type in anything for input() the way I can when running the program from the shell. I stumbled upon this thread which makes me suspect that the feature hasn't been added, but I just wanted to be sure. Isn't this a pretty basic thing to be able to do? Or do I have to stick to using atom purely as a text editor and running the file from the CLI? kasparg Some

Create Snippet with variables in Atom

折月煮酒 提交于 2019-12-04 03:14:48
Is it possible to incorporate variables into snippets in Atom? This comes in handy with for loops for example, when you want to pre-fill spots that are about to come. The snippets.cson entry with java as a source I would imagine. Unfortunately it is not working. '.source.java': 'For-Loop': 'prefix': 'fori' 'body': 'for (int ${1:VAR} = $2; ${VAR} < $3; ${VAR}++) {\n\t$3\n}' Update 2016-09 This is now supported in Atom - please see the other answer for how to use it. I can't delete this answer since it is the accepted one... Old Answer The documentation for the snippets package has an example

Auto-save in Atom Editor

。_饼干妹妹 提交于 2019-12-03 23:45:17
问题 Some code editors, such as WebStorm, have an option to auto-save when the editor loses focus. I've searched for an option like this in the Atom Editor but haven't found anything yet. Does the Atom Editor have a setting that allows for auto-save of edited files when it loses focus? If so, where can this be set? If not, how would one go about writing a plug-in that does that? 回答1: Yes there is auto save package. You can enable autosave in package settings. 回答2: autosave-onchange much better

How to run a program in Atom Editor?

纵饮孤独 提交于 2019-12-03 14:25:51
问题 I found Atom editor as good free alternative to Sublime text editor. Not able to find a straightforward way to run a program in Atom editor. In my case, I am trying to run a java program. Please let me know if it's possible? If yes, please describe the steps to follow. 回答1: I find the Script package useful for this. You can download it here. Once installed you can run scripts in many languages directly from Atom using cmd-i on Mac or shift-ctrl-b on Windows or Linux. 回答2: Click on Packages --

How to edit core files in Atom Editor

淺唱寂寞╮ 提交于 2019-12-03 14:20:48
I want to edit the tree-view package in Atom. I want to add a new item to the context menu. But i can't file where are the files. I can open the config folder and I can see all the community packages I have installed, but where do I find the core files of the editor? They are packed inside the app.asar file. This file is located at the following location in the OS X version. Atom.app/Contents/Resources/app.asar This file is generated by this build script . Of course, this package is open-source, so you can view the code for tree-view on GitHub . GitHub also has some documentation for

Can you open a Python shell in Atom editor?

孤者浪人 提交于 2019-12-03 12:43:33
You can open multiple tabs in the Atom editor, and have a multiple column layout as well. However, I am not being able to find out how to open a Python shell inside Atom so that I can load a Python script in the Python interactive shell. Does anyone know the steps to achieve this? Ace.C The script package is likely what you want, it allows you to test your code by running part or all of it at a time: You can install it by opening the settings view with Ctrl - , switching to the Install panel and searching for script. You can also install from the command line by running: apm install script

Xlib: extension “XInputExtension” missing on display “:1” Atom Ubuntu

喜夏-厌秋 提交于 2019-12-03 12:16:22
问题 I have an Amazon EC2 instance that runs Ubuntu 16.04 server. I installed atom and for some reason I am not able to start Atom. Everytime I start atom with the command line I see the following Xlib: extension "XInputExtension" missing on display ":1". I used vnc to setup ubuntu desktop and I am using vncviewer to access the desktop and start atom. I am not sure what I am doing wrong. My vncconfig file looks like this #!/bin/sh # Uncomment the following two lines for normal desktop: # unset

How to add a live (interactive) console window to Atom?

不问归期 提交于 2019-12-03 11:06:25
问题 Is it possible to add a live (interactive) console window to Atom? Note that this is similar to the article on adding a live console session to LightTable, except that it is for Atom. Essentially, I am interested in the integrated terminal emulation that Geany is capable of doing: Is there any way to do this in the Atom text editor from Github? 回答1: You might take a look at Atom Terminal Panel packages. 回答2: Yes it is possible. Don't know how they did, but there is a package "paltformio-ide".

How to make atom more like WebStorm IDE?

我们两清 提交于 2019-12-03 10:44:06
So what I love about WebStorm is it can do amazing autocomplete after putting a "." and i love all the code completions and linting. Webstorm is very resource heavy and pretty ugly. With atom I can't figure out how to do this. What plugins can I install or customize to get this to work for my likings? For JavaScript development, I would recommend atom-ternjs . atom-ternjs JavaScript code intelligence for atom with Tern . Adds support for ES5, ES6 (JavaScript 2015), Node.js, jQuery, Angular and more. Extendable via plugins. Uses suggestion provider by autocomplete-plus . Set up your project