sublimetext3

How to make a Sublime Text snippet work with Emmet installed

依然范特西╮ 提交于 2019-12-11 04:13:50
问题 I am trying to make a snippet in Sublime Text 3 that only applies to CSS files. This is the snippet I have: <snippet> <content><![CDATA[/* Theme Name: ${1:Theme name here and so on...} Theme URI: Author: Author URI: Description: Version: 1.0.0 License: License URI: Text Domain: Tags: */]]></content> <tabTrigger>xyz</tabTrigger> <scope>source.css</scope> </snippet> The problem is if I open a CSS file, type xyz and hit tab all I will get is xyz: ; . So it seems as if Sublime Text has already

Sublime Text Default Save Options

谁说胖子不能爱 提交于 2019-12-11 03:59:34
问题 Why when I save a file in Sublime Text 3 is the default save location the Sublime install directory and why is the default file type nothing? I want to set the default save location to the Desktop and the default file type to .txt, how can I do this? Here are my settings: { "font_size": 9, "hot_exit": false, "ignored_packages": ["Vintage"], "remember_open_files": false } 回答1: Doesn't (currently) address the default extension issue, but you can also try AdvancedNewFile. Rather than creating an

Why doesn't sublime automatically detect this custom sublime-build with a selector?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 03:49:00
问题 I have the following saved to node-sass.sublime-build in my User folder { "shell_cmd": "node-sass.cmd $file", "selector": "source.scss" } I have a slideEditor.scss file. If I explicitly set the build system to node-sass , ctrl+b works just fine, but if I set it to "Automatic", ctrl+b does nothing with nothing being logged to the console. What can be going on? According the limited documentation I'm doing everything correct. 回答1: First, the short answer to your question: change "source.scss"

make ctrl+enter add semicolon to the end of the line

白昼怎懂夜的黑 提交于 2019-12-11 03:21:59
问题 Ctrl+enter in sublimetext is a default shortcut to create a new line, no matter in what position your cursor are in the current line. However, sometimes I need to add a semicolon at the end of the current line before jump to a new line. How can i make the "ctrl+enter" shortcut add a semicolon to the end of the current line before create a new line? Is it even possible? sorry for my english. 回答1: You can simply modify the macro /Default/Add Line.sublime-macro to insert the semicolon. From this

Sublime Text 3 Windows column selection with Alt?

*爱你&永不变心* 提交于 2019-12-11 02:53:54
问题 Shift + right-click feels unintuitive to me. How can I tell ST3 to allow Alt + drag to do column selection, like in many other programs? 回答1: I got this to work on Windows 7 using Sublime Text 3. I created a file "C:\Users\\AppData\Roaming\Sublime Text 3\Packages\User\Default (Windows).sublime-mousemap", and put this in it: [ { "button": "button1","modifiers": ["alt"], "press_command": "drag_select", "press_args": {"by": "columns"} }, ] 回答2: The accepted answer by dwn is correct, but it is

Xdebug (Vagrant) not working with SublimeText 3

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 00:51:59
问题 I've installed Xdebug on my Vagrant server and the XdebugClient plugin for Sublime Text 3. When I start debugging, my page loads in the browser but nothing shows up in the context, watch or stack tabs. The xdebug.log file is also empty. The following are my settings: php.ini [CUSTOM] error_reporting=1 display_errors=true track_errors=1 [xdebug ] zend_extension="/usr/lib/php5/20121212/xdebug.so" xdebug.remote_connect_back=1 xdebug.default_enable=1 xdebug.remote_autostart=0 xdebug.idekey

OS X Sublime Text3 to use zsh shell

隐身守侯 提交于 2019-12-11 00:11:33
问题 I want to build a python file I get the following error: /bin/bash: python: command not found The reason is that I'm using zsh instead of bash. So how to let Sublime to look at /bin/zsh ? 回答1: This is indicative of your path not being correct and not what shell you normally use. In the case of OSX the path for GUI applications is set via different means than that of terminal programs (which you know based on your comments in your question above). Regardless, to answer your question (and for

Qt : button click => a message should appear in a haskell program

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 22:17:07
问题 I try to create a program which displays a text when a button is clicked, using haskell & Qt, on ubuntu using sublime text 3. But apparently there is a problem when defining the signal key (the key which will identify the signal called when the button is clicked). Moreover, it's hard to find a documentation about HsQML, the binding joining haskell & Qt. code: module Main where import Graphics.QML import Control.Concurrent import Control.Exception import Data.IORef import Data.Text (Text)

Setting PATH for Sublime Text 3 Anaconda plugin

删除回忆录丶 提交于 2019-12-10 21:48:08
问题 I've been using Anaconda distribution(for NumPy,Pandas library). Recently I've tried to use Sublime Text 3. Problem is Sublime text cannot use my Anaconda installation. It is using the default python installation. During Anaconda's installation, I've tried set it as global/default python setup and later also added anaconda/bin to my $PATH. $ echo $PATH /home/qfarhan/anaconda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games $ echo $PYTHONPATH /home