sublimetext3

SublimeREPL Unable to Find R

一个人想着一个人 提交于 2019-12-03 02:46:29
Okay, this is driving my crazy. I had set this up before, deleted Sublime Text, and now I can't remember what the right configuration was. Very simple: I'm running R through SublimeREPL and need to point the REPL to where R is installed. I followed the directions at http://sublimerepl.readthedocs.org/en/latest/ , which say to go into the user-defined REPL settings and add this: { ... "default_extend_env": {"PATH": "{PATH}:/home/myusername/bin"} ... } where the path points to the right directory. I tried replacing it with { ... "default_extend_env": {"PATH": "C:/Program Files/R/R-3.0.2/bin"} ..

Linting not working when using babel-eslint on Sublime Text 3

岁酱吖の 提交于 2019-12-03 02:40:24
I am trying to get babel-eslint to work on Sublime 3. I have installed: eslint and babel-eslint globally on npm SublimeLinter package on Sublime SublimeLinter-contrib-eslint package on Sublime Also, I have added: "syntax_map": { ... "JavaScript (Babel)": "javascript" } to my SublimeLinter.sublime-settings file. When I run the linter with "parser": "espree" on my .eslintrc file it works fine. But when I change the parser to babel-eslint it stops working. I tried to follow the tutorial here: https://medium.com/@dan_abramov/lint-like-it-s-2015-6987d44c5b48 and I seem to be doing everything

How to change background and text colors in Sublime Text 3

心不动则不痛 提交于 2019-12-03 02:36:25
问题 My questions are: How do I change the overall colors (background and font)? How do I change the colors based on the file type that is open? Do I need to learn how to create a whole theme? I read this answer -- Sublime 2 -changing background color based on file type? -- for Sublime 2, but I'm using Sublime 3 (currently in beta), and there is no "Color Scheme - Default" in the Package folder. 回答1: For How do I change the overall colors (background and font)? For MAC : goto Sublime text ->

Autoindent on Sublime Text

喜你入骨 提交于 2019-12-03 01:37:34
Are there any command/shortcut to auto-indent all my code on the page at once on Sublime Text 3? e.g: On NetBeans I can do this with Alt + Shift + F . That's quite simple in Sublime. Just Ctrl+Shift+P (to open tools pallet), type reindent , and pick Indentation: Reindent Lines . It should reindent all the file you are in, just remember to save before running the command, or it may not appear. Auto-indenting on Sublime Text 3 - "Key Bindings" Just add this binding to your "Key Bindings - User" file: Preferences > Key Bindings - users {"keys": ["alt+shift+f"], "command": "reindent", "args": {

Sublime Text: disable all packages

筅森魡賤 提交于 2019-12-03 01:10:09
I'm using Sublime Text 3083. When I load a file with several thousand lines and try to edit it, it gets amazingly un-responsive to the point that adding/removing even one character takes it seconds. I have > 20 packages installed and I need a way to disable all of them at once, to check if this issue is package related or o not. I've searched around and I know that you can disable packages one by one but that's not good when lots of packages are installed. According to this post in the sublime forum, there is no way to do this but the post is rather old (and also not an official statement) So,

Sublime Text 3 build system: keep console running

▼魔方 西西 提交于 2019-12-03 00:43:17
I set up a build system in Sublime Text 3 to run Matlab files. This works really fine: { "cmd": ["/usr/local/MATLAB/R2013b/bin/matlab", "-nosplash", "-nodesktop", "-nojvm", "-r \"run('$file');\""] } The problem is I want to keep Matlab running in the Sublime console after $file is executed. Is this possible? Thank you in advance. Ok, I've finally found a solution that runs the build system in an external xterm terminal. If you use this Sublime will open a xterm window and execute the build system there. This window remains open, so e.g. Matlab plot windows will not be closed after execution of

How to navigate between instances of selected text in Sublime Text 3?

孤者浪人 提交于 2019-12-02 22:51:45
Sublime Text 3 highlights all instances of currently selected text. Is there any shortcut to navigate cursor to the next / previous instance (copy) of selected text? So far, I've only managed to find out some information about adding more instances to current selection (expanding it) with Ctrl + D , skipping current instance ( Ctrl + K , Ctrl + D ) and deselecting it ( Ctrl + U ), which actually is a soft undo, not a real command. I can use Ctrl + D to go to next instance of selected text and Ctrl + U to undo. But, since these shortcuts operates on selection, this is not, what I'm looking for.

Reading stdout process in real time

时光毁灭记忆、已成空白 提交于 2019-12-02 22:43:28
Let's consider this snippet: from subprocess import Popen, PIPE, CalledProcessError def execute(cmd): with Popen(cmd, shell=True, stdout=PIPE, bufsize=1, universal_newlines=True) as p: for line in p.stdout: print(line, end='') if p.returncode != 0: raise CalledProcessError(p.returncode, p.args) base_cmd = [ "cmd", "/c", "d:\\virtual_envs\\py362_32\\Scripts\\activate", "&&" ] cmd1 = " ".join(base_cmd + ['python -c "import sys; print(sys.version)"']) cmd2 = " ".join(base_cmd + ["python -m http.server"]) If I run execute(cmd1) the output will be printed without any problems. However, If I run

syntax highlighting for react code in sublime

依然范特西╮ 提交于 2019-12-02 19:58:09
I'm started writing some basic React code in sublime text. Here is what my syntax highlighting looks like. Its partly highlighted. Is there any suggested sublime plugin i can use to see a complete syntax highlight? import React, { Component } from 'react' import { connect } from 'react-redux' // <-- is the glue between react and redux import { bindActionCreators } from 'redux' import { selectBook } from '../actions/index' // there is no intrinsic connection between React and Redux // they are two seperate libraries // they are connected using a seperate library called ReactRedux // container?

How can I open command line prompt from Sublime in windows7

别说谁变了你拦得住时间么 提交于 2019-12-02 19:38:27
I'v created a function in VIM named OpenCMD(), it used for open command line or terminal in VIM (And cd in the current file path) func! OpenCMD() if has('win32') let com = '!cmd /c start cd '. expand('%:p:h') else let com = '!/usr/bin/gnome-terminal --working-directory=' . expand('%:p:h') endif silent execute com endfunc nmap cmd :call OpenCMD() Now, I want to open command line and cd in the current file path in Sublime (sublime 3 beta). The function as the same as the OpenCMD() . And I searched an question in stackover flow: Sublime Text 2 - Open CMD prompt at current or project directory