sublimetext3

HTML syntax highlight sublime 3 Typescript

百般思念 提交于 2019-12-21 05:48:24
问题 I am using TypeScript with Sublime 3. How can I add HTML highlight in template attribute: [NOTE: I am already using Microsoft TypeScript Package] Look how its not highlighted now: 回答1: You can read here how to achieve this: https://forum.sublimetext.com/t/javascript-es6-template-literals-syntax-for-html/18242 Reproduced here: Open Tools > Developer > New Syntax Add: %YAML1.2 --- # See http://www.sublimetext.com/docs/3/syntax.html name: JavaScript NG file_extensions: - js - ng.js scope: source

How to search multiple files of specific file type within Sublime Text 3

左心房为你撑大大i 提交于 2019-12-21 03:41:31
问题 I would like to search for a string within all *.php files in a certain directory (and its sub-directories) using the Shift + Ctrl + F search dialog. My guess was to set the search location to: c:\example\*.php but that gives an error: Unable to open c:\example\*.php Is there a way to perform the search I'm hoping to perform? 回答1: C:\example,*.php In the Where: click ... , select Add Folder , after that select Add Include Filter 来源: https://stackoverflow.com/questions/28751213/how-to-search

how to override shortcut for multiple cursors sublime text 3?

左心房为你撑大大i 提交于 2019-12-21 02:36:21
问题 I am using linux [FEDORA 20]. I want to override shortcut key for multiple cursor which is ctrl+alt+up/down because it is used for switching workspace in fedora. I tired to search shortcut in Preferences>key binding - default . But couldn't find it. So how do i override it? 回答1: Ctrl Alt ↑ / ↓ is the keyboard shortcut for multiple selection in Windows, not Linux. The following is from the Linux keymap file: { "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} }, {

How to disable spell checking in Sublime Text 3?

倖福魔咒の 提交于 2019-12-20 19:15:06
问题 I tried the following settings, but all it did was make things progressively worse. "spell_check": false, "dictionary": "", "spelling_selector": "", I don't understand the default value of spelling_selector , but maybe that's the key? 回答1: This is what setting 'spell_check' in your preferences - user or syntax specific - user preference file does: // Set to true to turn spell checking on by default "spell_check": false, Note that you are changing the DEFAULT status of spell checking. To

Sublime text 3 Fira Code ligatures

五迷三道 提交于 2019-12-20 17:49:31
问题 Accordingly to this commit, ST3 has support for Fira Code ligatures, but I still don't see any changes. Obviously I have installed Fira code and have "font_face": "Fira Code", settings for this in my user settings file. But my code still with default font, without ligatures. How I can fix it? 回答1: As mentioned on https://blog.sarav.co/installing-fira-code-ligatures-sublime-text-3-mac-os/. Ligature support on Sublime Text has been enabled from version 3156+. Download Dev Version 3156 First

SublimeText3 Fold/Unfold all methods

拈花ヽ惹草 提交于 2019-12-20 17:36:31
问题 I am using SublimeText3 for C++ and Java. I am wondering if there is a way to fold all of the methods in a file / class, and then unfold them all, regardless of where the caret is. Or is there a way to list all the functions / methods. Basically I would like to be able to enter a file and see all the methods at one quick glance. Thanks 回答1: Using the Sublime Text 3 menu, you can find EDIT -> Code Folding -> which exposes the folding methods and will helpfully tell you the default keyboard

How to set up Sublime text 3 to run and compile java on linux?

∥☆過路亽.° 提交于 2019-12-20 16:20:39
问题 Recently I've decided to learn Java and give it a try. I have a short and amateur experience with python, therefore I'm not a kind of programming expert. After many days trying to figure out how to set up Sublime Text to run and compile Java, I've decided to come for any help. I've already installed JDK and I was using Netbeans, but I prefer a minimalistic IDE. I created a .sublime-build file like this below.. However when I try to build the code, it returns me that error below.. So, probably

How to jump to previous and last cursor in Sublime Text 3? [closed]

瘦欲@ 提交于 2019-12-20 08:00:14
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I google a lot and find BufferScroll.But it doesn't work for me.I can't find any shortcut or how to use it in the document. Update: Every time I try to use Jump Forward(Shift+Alt+Minus),my editor always says "Already at the newest position" while actually not in the newest position.Jump Back(Alt

How to jump to previous and last cursor in Sublime Text 3? [closed]

笑着哭i 提交于 2019-12-20 08:00:09
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I google a lot and find BufferScroll.But it doesn't work for me.I can't find any shortcut or how to use it in the document. Update: Every time I try to use Jump Forward(Shift+Alt+Minus),my editor always says "Already at the newest position" while actually not in the newest position.Jump Back(Alt

How do I run python from Sublime text 3?

泪湿孤枕 提交于 2019-12-20 06:07:08
问题 I just got python and sublime 3. When I press control + b, I get this in the console: 'python' is not recognized as an internal or external command, operable program or batch file. And it won't run my amazing code! print"Hi" I do have Python installed, and how do I change the PATH? 回答1: If you installed Python 2, you'll need to just go ahead and install Python 3, as it's the present and future of the language. Don't starting learning Python with 2, you'll pick up all sorts of bad habits.