atom-editor

How connect to proxy in electron webview?

一个人想着一个人 提交于 2019-12-02 19:47:05
as I can connect through a to a free proxy server (or pay), currently in use as electron JS solution as desktop application example proxy list servers http://proxylist.hidemyass.com/ You can use .setProxy() method of session object. You're able to specify proxy directly like in example below: // in main.js var electron = require('electron'); var BrowserWindow = electron.BrowserWindow; mainWindow = new BrowserWindow({ "width": 970, "height": 500, "center": true, 'title': 'Main window', }); mainWindow.webContents.session.setProxy({proxyRules:"socks5://114.215.193.156:1080"}, function () {

How to set jshint/jsxhint “esnext” option in Atom

我与影子孤独终老i 提交于 2019-12-02 18:50:15
I am using Atom's linter , react , and linter-jshint / linter-jsxhint . In my JSX files, I keep getting the warning Warning: 'import' is only available in ES6 (use esnext option). (W119) That's pretty straightforward. I did some searching, and found that this can be set under the jshintConfig option in package.json (when using NPM). My project uses NPM and I have a package.json . I added: "jshintConfig": { "esnext": true } After that, I did a reload but the warnings persist. I also modified my linter-jshint / linter-jsxhint config in Atom ( config.cson ) with: "linter-jshint": harmony: true

How to use visual studio code to debug django

会有一股神秘感。 提交于 2019-12-02 18:25:21
I'm new at django development and come from desktop/mobile app development with Xcode and related IDE. I have to use Django and I was wondering if there was an efficient way to debug it using Visual Studio Code (or Atom ). Any help related to Django IDE would be helpful too. Matt Bierner For VSCode (full disclosure, I'm one of the VSCode developers) try installing the Python extension to get started. This documentation covers debugging Django . There should be a included debug configuration or you can add your own to the launch.json file : { "name": "Django", "type": "python", "request":

Changing comment colour in Atom editor

爱⌒轻易说出口 提交于 2019-12-02 18:07:28
I would like to change the colour of comments in the Atom editor. From a bit of googling, I found I can put the following in my .atom/styles.less file: atom-text-editor::shadow .comment { color: #ffffaa; } That's great - now I have bright yellow comments that demand to be noticed rather than fading into the background. The trouble is that it now looks like the below As you can see, the text colour of the comments has changed, but the comment delimiters and links within comments remain in the default almost-invisible-grey, which looks a bit silly. My questions are (1) how can I change the

You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

不想你离开。 提交于 2019-12-02 18:02:32
below is what I need to do. To run the specs, you'll need to install RSpec. First, run gem install bundler in the root directory of your project. Then, run bundle install . To run a single spec file, run a command like this: bundle exec rspec spec/00_hello_spec.rb . To run all of the specs at once, run bundle exec rspec . So, I typed gem install bundler to terminal, and got You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. and this was in the project file in atom *source " https://rubygems.org " gem "rspec", "~> 3.2.0" * My question is: It seems like terminal is

How do I make a default syntax by filetype in Atom text editor?

对着背影说爱祢 提交于 2019-12-02 17:37:01
I want my .ejs files to have html syntax, however, it always opens the files as Plain Text. In sublime you can choose "Open all with current extension as..." then choose your syntax. I see that you can change the syntax in the left bottom corner How do you open files with a certain type with a specific syntax? Kyle Kelley Easy mode: include If your language really is just HTML, you can set up a simple package to handle this. Create a package called langugage-ejs and in grammars/ejs.cson you can include HTML as having the patterns you care about: 'fileTypes': [ 'ejs' ] 'name': 'Embedded

How to uninstall Atom text editor on Linux?

对着背影说爱祢 提交于 2019-12-02 17:22:52
i was reading the documentation looking for a way to cleanly uninstall Atom from my linux OS, but i didn't find anything related. Is there a set of directories to delete? or maybe an script to run? Thanks for the attention I have posted the same question in the Github Project Repository and this is the complete answer: https://github.com/atom/atom/issues/2195#issuecomment-42917489 The commands to execute are: sudo rm /usr/local/bin/atom sudo rm /usr/local/bin/apm rm -rf ~/atom rm -rf ~/.atom rm -rf ~/.config/Atom-Shell sudo rm -rf /usr/local/share/atom/ For Ubuntu 14.04 & Ubuntu 18.04, use the

How can I manually download packages for atom editor and install them (manually)?

南笙酒味 提交于 2019-12-02 17:19:41
Due to poor internet connection my atom packages won’t install from settings>preferences>install>packages . So I think I need to manually install them. For example: I tried the repository from respective github page and cloned it in users>.atom>packages but this didn't work. Any help? I love this text editor so it would be pretty handy if I could install more packages manually. Any other ways are always welcome! There are a few ways, most are similar to this : You can download the package, unzip or decompress, go to that folder and run: apm link that will create a symbolic link from that

Using anaconda environment in Atom

假装没事ソ 提交于 2019-12-02 17:14:29
I've install Anaconda (Python 3.6) and tensorflow (python 3.5). I've managed to get it run both on Spyder and on sublime text 3( by making new build system). Now all the is using Atom( which I'm not used to). So I've trying to "tell" Atom to use python in the following folder: C:\users\engine\anaconda3\envs\tensorflow\python.exe without any success, any idea how to do that or what kind of package should I use( I'm using windows so virtualenv) thanks in advance ! In your Anaconda terminal, activate your Conda environment and then run 'atom --new-instance' If you want to run some python script

Hide hidden(dot) files in github atom editor

你说的曾经没有我的故事 提交于 2019-12-02 15:41:13
I am very new to Github Atom editor. It always shows hidden files such as .git , .sass in the side pane. How to hide hidden files(dot files) in atom editor's side pane. Atom > Preferences > Packages In the field below "Installed Packages" type: "Tree View". This package has a few settings you can toggle, "Hide Ignored Names" is what you're looking for. It's a really buried setting, not sure why. You can also add it to your config: 'tree-view': 'hideIgnoredNames': true salim 1- From the Menu Bar go to File > Settings > Packages type in the Filter " tree-view " click on the setting of this