sublimetext3

Build System - Sublime Text 3

走远了吗. 提交于 2019-12-19 07:42:34
问题 I have the following script called "build-bat.sublime-build": { "cmd": "build.bat", "working_dir": "$project_path", "windows" : { "shell": true } } The script is in C:\Users\MyName\AppData\Roaming\Sublime Text 3\Packages I can select the script in Tools/Build Systems/build-bat and then I run it via CTRL+B or via manually selecting it in Tools/Build It happens exactly nothing. I don't see anything, I don't get any errors. It should run a file named: build.bat in the current directory where the

How to change the default Python interpreter in Sublime text 3

故事扮演 提交于 2019-12-19 05:15:16
问题 I am currently using the Anaconda python distribution for my project (NOT the anaconda plugin, they have the same name, but the one I am using includes Numpy, IPython, etc. It is kinda confusing). So I want to change the default python (v3.3) to the one in Anaconda (v2.7.6), in that case I will be able to use the libraries embedded in Anaconda. I tried to put a new script under Tool > Build System > New Build System. { "path": "/home/username/anaconda/bin", "cmd": ["python", "-u", "$file"],

In Sublime Text 3, how can I change the comment character?

吃可爱长大的小学妹 提交于 2019-12-19 03:59:07
问题 I like the auto-comment feature Ctrl + / , but I'd like to be able the change the character it uses arbitrarily. I have read many similar questions like this one, but it's not exactly a generic solution. How can I make the comment character use something different? The specific use case is that I'm writing R code and using Roxygen2 for documentation. This uses #' as the comment character, instead of just # . So I I'd like to set sublime to use #' because as is, I can't use it for Roxygen2

Compiling program as c++ 14 in Sublime Text 3 as default

霸气de小男生 提交于 2019-12-19 03:08:34
问题 I know that we can compile program as C++ using g++ compiler. But g++ compiler defaults to 98 version. To run it as C++ 14, we need to add -std=c++14 in terminal. Sublime Text is considered a valuable editor for competitive programming due to its light weight and features. In these competitions time is important and thus the time is wasted in copying in text file and then running from terminal. C++ 14 features a rich library and other important features in comparison to 98. Thus one would

IPython 4 shell does not work with Sublime REPL

眉间皱痕 提交于 2019-12-18 16:46:16
问题 I am having problems with running the IPython shell from the Sublime REPL package. Here is what I get: C:\Anaconda\lib\site-packages\IPython\config.py:13: ShimWarning: The`IPython.config` package has been deprecated. You should import from traitlets.config instead. "You should import from traitlets.config instead.", ShimWarning) C:\Anaconda\lib\site-packages\IPython\terminal\console.py:13: ShimWarning: The `IPython.terminal.console` package has been deprecated. You should import from jupyter

Emmet HTML div tag with multiple words class name

痴心易碎 提交于 2019-12-18 15:32:54
问题 I did not find the answer on documentation for this question. As we know, div.container gives <div class="container"> However, what abbreviation shall be used for <div class="row placeholders"> Anyone knows? Thanks. 回答1: From the Emmet Cheat Sheet: p.class1.class2.class3 <p class="class1 class2 class3"></p> So, div.row.placeholders will give you: <div class="row placeholders"></div> 回答2: To obtain this using Emmet use: input[placeholder="Username" maxlength="254" name="username" type="text"

Merging files in Sublime with Sublimerge via command line

久未见 提交于 2019-12-18 14:55:27
问题 I'm trying to find a better merge file option and wanted to try out Sublime as of my work is done using it. so I installed Sublimerge and now am stuck. I know I can compare two already open files or compare via the Sidebar but what I want to do is fire it off via the command line so I can kick it off from our source control program like I can with every other merge tool I've seen. Does anyone know the command line format to do this? N.B. - I've long since given up trying to use sublime to

Sublime Text - Modifying tmTheme file

走远了吗. 提交于 2019-12-18 12:43:15
问题 In the .tmTheme file: <dict> <key>name</key> <string>Entity name</string> <key>scope</key> <string>entity.name - (entity.name.filename | entity.name.section | entity.name.tag | entity.name.label)</string> <key>settings</key> <dict> <key>fontStyle</key> <string></string> <key>foreground</key> <string>#A6E22E</string> </dict> </dict> The next scope string: <string>entity.name - (entity.name.filename | entity.name.section | entity.name.tag | entity.name.label)</string> Is a kind of regular

Increase the font size of text in Sublime side bar

ε祈祈猫儿з 提交于 2019-12-18 10:26:13
问题 I would like to increase the font size of the left side bar in Sublime Text 3. I can't seem to find a good way to do this. I am using the default theme, and am on Mac. Does anyone have a suggestion? I don't want to install a custom theme, but would just like to increase the font size of the side bar. Thanks! 回答1: You will need to edit the .sublime-theme file to do this. Unfortunately, in Sublime Text 3 this file is contained in a zipped .sublime-package file, so you'll need to extract that

How to increase number of recent files in Sublime Text 3?

老子叫甜甜 提交于 2019-12-18 10:13:35
问题 Is it possible to increase the number of recent files that appear in the File -> Open recent menu in Sublime Text 3 (Ubuntu)? I have already read Increase number of recent projects in Sublime Text 2? And I can't find this ~/Library folder at my PC. I can find ~/.config/sublime-text-3/Packages but there's no "Default" subfolder inside. 回答1: The Default package in Sublime Text 3 on Linux is stored in (assuming you used the .deb installer) /opt/sublime_text/Packages/Default.sublime-package .