atom-editor

How to share/transfer an Atom installation (packages and settings) from one Mac to another?

匆匆过客 提交于 2019-11-27 16:58:09
Is it possible to copy Atom from one Mac to another, including all installed packages, settings etc? There are several ways to synchronize your settings and packages between Atom installations: Git: Create a public or private Git repo and store the contents of your local ~/.atom folder in there. Ignore the following files/directories in a .gitignore file: storage compile-cache dev .npm .node-gyp Use a package like sync-settings . This will store your configuration in a GitHub Gist. Dropbox (or similar): Move your ~/.atom folder to your Dropbox folder and then symlink it from there to its

What is the Visual Studio Code editor built on

孤人 提交于 2019-11-27 16:57:32
What underlying technologies/libraries is Microsoft's new (free) cross platform editor Visual Studio Code (Launched 5/29/2015) built on? There are rumors that it's just Github's Atom Editor rebranded. Visual Studio Code is built using web technologies on top of Github's Electron . Electron is an app runtime for writing native apps that uses Chromium (which Google Chrome is built on) for rendering the interface and node.js for local APIs (example: file system access) , it was built primarily as the shell for Github's Atom code editor. (Note: Electron is very similar to NW.js ) . Node.js is a

How to open Atom editor from command line in OS X?

孤者浪人 提交于 2019-11-27 16:36:19
I have the Atom editor and was wondering how you can open a file or folder from the terminal in Atom. I am using a Mac. I am looking for a way to do this: atom . (opens folder) atom file.js (opens file) atom (opens editor) Is this possible and how do I set it up? When Atom installs it automatically creates a symlink in your /usr/local/bin. However in case it hasn't, you can create it yourself on your Mac ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom Now you can use atom folder_name to open a folder and atom file_name to open a file. Hope this helps. shaheenery

How to setup Atom's script to run Python 3.x scripts? May the combination with Windows 7 Pro x64 be the issue?

*爱你&永不变心* 提交于 2019-11-27 13:44:08
I'm trying to switch from Notepad++ to Atom, but I just can't manage to get my scripts executed in Atom. I followed this answer (so I already installed script ) which is not really extensive and also the rest on the web doesn't offer anything comprehensible for beginners. In Notepad++ NPPexec I used to NPP_SAVE cd "$(FULL_CURRENT_PATH)" C:\Python34\python.exe -u "$(FULL_CURRENT_PATH)" and in Sublime Text 2 I made it run by creating a new "Build System": { "cmd": ["C:\\python34\\python.exe", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" } Can

Uncaught Error: Cannot find module 'jquery'

馋奶兔 提交于 2019-11-27 12:33:15
I am using Electron to make a desktop app. In my app I am loading a an external site (outside Atom app) lets say http://mydummysite/index.html page. Here is the structure of my app in Atom Editor : i.e it is having following parts: main.js package.json nodemodules>jquery (to load jquery) Source code: main.js: 'use strict'; var app = require('app'); app.on('ready', function() { var BrowserWindow = require('browser-window'); var win = new BrowserWindow({ width: 800, height: 600, show: false, 'node-integration':true }); win.on('closed', function() { win = null; }); win.loadUrl('http://mydummysite

pygame.error: Couldn't open image

拥有回忆 提交于 2019-11-27 06:29:07
问题 I am learning python using this website: http://programarcadegames.com/index.php?lang=en&chapter=bitmapped_graphics_and_sound I am trying to load an image like so: background_image = pygame.image.load("background.jpg").convert() I have found several other asking the same question, and all the answers are telling the poster to make sure the image is in the same folder as the .py file. Well, it is. I double checked. I also tried putting it into a subfolder called 'images' and using this.

Running Python from Atom

…衆ロ難τιáo~ 提交于 2019-11-27 05:34:37
问题 In Sublime, we have an easy and convent way to run Python or almost any language for that matter using ⌘ + b (or ctrl + b ) Where the code will run in a small window below the source code and can easily be closed with the escape key when no longer needed. Is there a way to replicate this functionally with Github's atom editor? 回答1: The script package does exactly what you're looking for: https://atom.io/packages/script The package's documentation also contains the key mappings, which you can

How to configure Atom to run Python3 scripts?

自闭症网瘾萝莉.ら 提交于 2019-11-27 05:05:37
In my terminal, I type $ which python3 , outputting /opt/local/bin/python3 I would like to configure Atom to run Python3 scripts. In my Atom Config, I have runner: python: "/opt/local/bin/python3" However, if I run the following script in some script named filename.py , import sys print(sys.version) I get the following output: 2.7.11 (default, Feb 18 2016, 22:00:44) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] How exactly does one set up the PATH for Python3.x scripts to run correctly? Is there a different package I could use? If you are using Mac OS X, use the directory on the

How to auto-indent code in the Atom editor?

依然范特西╮ 提交于 2019-11-27 04:58:53
问题 How do you auto-indent your code in the Atom editor? In other editors you can usually select some code and auto-indent it. Is there a keyboard shortcut as well? 回答1: I found the option in the menu, under Edit > Lines > Auto Indent. It doesn't seem to have a default keymap bound. You could try to add a key mapping (Atom > Open Your Keymap [on Windows: File > Settings > Keybindings > "your keymap file"]) like this one: 'atom-text-editor': 'cmd-alt-l': 'editor:auto-indent' It worked for me :)

How to share/transfer an Atom installation (packages and settings) from one Mac to another?

有些话、适合烂在心里 提交于 2019-11-26 22:30:41
问题 Is it possible to copy Atom from one Mac to another, including all installed packages, settings etc? 回答1: There are several ways to synchronize your settings and packages between Atom installations: Git: Create a public or private Git repo and store the contents of your local ~/.atom folder in there. Ignore the following files/directories in a .gitignore file: storage compile-cache dev .npm .node-gyp Use a package like sync-settings. This will store your configuration in a GitHub Gist.