text-editor

Activating text editing macros on Netbeans

狂风中的少年 提交于 2019-12-23 19:24:15
问题 This question was asked on Super User but I didn't get any response so I moved it here...I believe it is relevant and important... I've been using Netbeans on Mac OS X for sometime it has some really good features but it doesn't support most of the macros and that sucks. I'm not only talking about complicated emacs macros but even the most basic are not supported like C-e for the end of the line or C-a for the beginning of the line. Can somebody help to activate macros ? 回答1: I'm not sure if

Change font-size for a single scope in Sublime Text 2 [duplicate]

旧巷老猫 提交于 2019-12-23 16:26:37
问题 This question already has an answer here : Per-token font size in Sublime Text 2 (1 answer) Closed 3 years ago . Is it possible in a .tmTheme file for Sublime Text 2 to change the font-size in a single scope? I couldn't find any documentation on what keys I had available. What I really want to do, is make the name of the section in \section{name} in LaTeX in a different size font, with something like: <dict> <key>scope</key> <string>entity.name.section.latex</string> <key>settings</key> <dict

Preview HTML markup inside textarea

女生的网名这么多〃 提交于 2019-12-23 04:34:13
问题 How to transform html codes within textarea while typing, as text editors do? I searched a lot, but preview is outside the textarea (which is very simple by jquery). I want to know the trick text editors do to display formatted html inside the textarea! Note that I do not want a text editor, I want to show markeup when typping; for example displaying BOLD when typing <b>BOLD</b> inside textarea. 回答1: textarea does not have such a feature. However, you can still achieve the same effect with

Preview HTML markup inside textarea

僤鯓⒐⒋嵵緔 提交于 2019-12-23 04:34:05
问题 How to transform html codes within textarea while typing, as text editors do? I searched a lot, but preview is outside the textarea (which is very simple by jquery). I want to know the trick text editors do to display formatted html inside the textarea! Note that I do not want a text editor, I want to show markeup when typping; for example displaying BOLD when typing <b>BOLD</b> inside textarea. 回答1: textarea does not have such a feature. However, you can still achieve the same effect with

Workspace Editor Macros in Eclipse

别等时光非礼了梦想. 提交于 2019-12-23 03:44:07
问题 Is there a way to record permanent workspace macros in Eclipse and assign them a shortcut key or template? I'd like to automate some of the actions I routinely do. Workspace editor templates are not a solution since I need to include some conditional logic as well. For example check what is a symbol to the right/left of the cursor. 回答1: See my answer at How can I launch more than one debug session in Eclipse from a single click? . The same plugin can work for you as well. 来源: https:/

Sublime Text 3 Emmet triggering conflict?

↘锁芯ラ 提交于 2019-12-23 03:01:52
问题 I just started using Sublime Text 3 beta. Love it so much. And I love using Emmet while coding. But there's one thing annoys me that whenever I am editing CSS for example, code suggest interrupts so my trigger key(which is Tab key) won't work. (I have to hit Enter key instead). Does anyone know how to fix this problem? 回答1: I found a solution Changing a line in key binding file from: { "keys": ["enter"], "command": "commit_completion", "context": to: { "keys": ["tab"], "command": "commit

sublime text 2 how to set environment variable

前提是你 提交于 2019-12-22 09:03:52
问题 i want set Environment variables. that says http://docs.sublimetext.info/en/latest/extensibility/snippets.html; Snippet Features Environment Variables Snippets have access to contextual information in the form of environment variables. Sublime Text sets the values of the variables listed below automatically. You can also add your own variables to provide extra information. These custom variables are defined in .sublime-options files. but i cant found .sublime-options file. i want set the $TM

How to set the guides (right-margin marks) in VS2012 text editors

江枫思渺然 提交于 2019-12-22 06:27:38
问题 Is it possible to set the guides (right-margin marks) in the visual studio 2012 text editors without any extensions? Edit : registry key HKCU\Software\Microsoft\VisualStudio\11.0\Text Editor doesn't work. Any working solutions? 回答1: Now is the Paul Harrington's Editor Guidelines Extension for the Visual Studio 2012 available. So you have an extended context menu, where you can Add, Remove or Change Color of the guidelines. 来源: https://stackoverflow.com/questions/12073277/how-to-set-the-guides

How do you hide arbitrary section of code in VS Code?

徘徊边缘 提交于 2019-12-22 04:56:19
问题 By "VS Code" I mean the lightweight text editor not the monolithic IDE, unfortunately searching this on google will bring up many pieces of irrelevant information about how to do this in Visual Studio. To the question itself, Anybody knows how to hide arbitrary selected lines of code in "Visual Studio Code" , preferably into a plus sign like collapsing does? Note: this is different than collapsing nested code which probably could be achieved by Ctrl+K,Ctrl+<num> , what I need here is to hide

A text editor that auto-folds parentheses?

邮差的信 提交于 2019-12-22 01:41:02
问题 I have some big messy SQL procedures that I'm debugging, and they tend to have a lot of heavily nested parentheses: SELECT * FROM (SELECT F1,F2 FROM TABLE1 AS X LEFT JOIN (SELECT F9,F8 FROM (SELECT F13,F14 FROM TABLE4) AS J INNER JOIN TABLE3 ON...) AS B ON X.F1=B.F9) AS X1 I'm looking for an editor that can automatically mark and optionally collapse/fold each parentheses set to ease reading, e.g. SELECT * FROM ... AS X1 SELECT * FROM (SELECT F1,F2 FROM TABLE1 AS X LEFT JOIN ... AS B ON X.F1=B