text-editor

Hidden Features of Visual Studio (2005-2010)?

烂漫一生 提交于 2019-12-27 16:06:11
问题 Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. Visual Studio is such a massively big product that even after years of working with it I sometimes stumble upon a new/better way to do things or things I didn't even know were possible. For instance- Crtl + R , Ctrl + W to show white spaces. Essential for editing Python build scripts. Under "HKEY_CURRENT_USER\Software

Importing java classes text editor

不羁的心 提交于 2019-12-25 16:35:52
问题 Recently I started using a text editor (text mate) instead of eclipse to program in Java. I hava file1.java in a folder A(/Users/kevincastro/Documents/Code/estructuras/clases) and a file2.java in folder B(/Users/kevincastro/Documents/Code/estructuras/datastructures). I want to import file2.java to file1.java but it doesn't word. I've tried : import Users.kevincastro.Documents.Code.estructuras.datastructures.*; import datastructures.*; import Documents.Code.estructuras.datastructures.*; none

Importing java classes text editor

故事扮演 提交于 2019-12-25 16:34:06
问题 Recently I started using a text editor (text mate) instead of eclipse to program in Java. I hava file1.java in a folder A(/Users/kevincastro/Documents/Code/estructuras/clases) and a file2.java in folder B(/Users/kevincastro/Documents/Code/estructuras/datastructures). I want to import file2.java to file1.java but it doesn't word. I've tried : import Users.kevincastro.Documents.Code.estructuras.datastructures.*; import datastructures.*; import Documents.Code.estructuras.datastructures.*; none

How can I get syntax highlighting for my format in an Eclipse text editor?

橙三吉。 提交于 2019-12-25 04:58:45
问题 I need syntax highlighting for text with a specific structure in an Eclipse text editor. The scheme is simple; basically each line has six words separated by white-space, and lines starting with # are comments. Most important is to highlight the comments, but it would be useful to individually color the six elements in the non-commented lines. If it is too complicated to obtain, perhaps I could use an existing plugin meant for something with a similar syntax. Any suggestions? 回答1: If you want

Feature request for a text-editor with support for literate programming [closed]

好久不见. 提交于 2019-12-25 04:45:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 9 years ago . This is a feature request for the writers of Visual Studio and any other programmer's editor. Consider a literate program as follows: /* File Name: LiterateProgram.h */ // \begin{comment} #pragma once #include "myHeader.h" /* \end{comment} %\bigskip \begin{lstlisting} % */ class CSomeClass : public CSomeBase {

(Jquery-Rich Text Editor) How can be fixed bug in rich text editor - when press enter in firefox created 'br' tag but in IE created 'p' tag?

喜夏-厌秋 提交于 2019-12-24 10:37:29
问题 I working on website that use cleditor (Jquery-Rich Text Editor). The editor have bug - when press enter after letter in firefox created 'br' tag but in IE created 'p' tag. Bug reproduction: You can see this in their demo http://premiumsoftware.net/cleditor/ (enter some input end press enter (Firefox + IE ) - see different space between lines because in IE generated 'p' tag vs firefox that genarated 'br' tag) Update: same question - better explanation then my: http://vanillaforums.org

Rebinding the arrow keys in VS2010

假如想象 提交于 2019-12-24 09:27:51
问题 Moving hands all the way down to the arrow keys can be boring... Is there a way to rebind the arrow keys to shortcuts, like in emacs ? Thank you! 回答1: Found it ! Tools -> Options -> Environment -> Keyboard The commands are Edit.LineUp, Edit.LineDown, Edit.CharLeft, Edit.CharRight. 回答2: I think (tools)(options)(macro)(keyboard) will get you to the screen where you can assign stuff to keys. (i don't have 2010 handy from here) 来源: https://stackoverflow.com/questions/5912974/rebinding-the-arrow

Dynamic Simple Text Editor Java

家住魔仙堡 提交于 2019-12-24 07:46:28
问题 I have modified code from here for my project. I want to make a editor that have dynamic text area. Each time I press the enter key, a new text area will create. Sorry, I cannot explain more with English. Please look my code: import javax.swing.*; import javax.swing.text.*; import java.awt.*; import java.io.*; import java.awt.event.*; import java.util.Hashtable; public class SimpleEditor extends JFrame { int count = 0; private Action openAction = new SimpleEditor.OpenAction(); private Action

Identifying Identical Blocks of Code

痴心易碎 提交于 2019-12-24 07:16:04
问题 Say I have multiple blocks of the following code in a file (spaces is irrelavent): sdgfsdg dfg dfgdfgf ddfg dfgdfgdfg dfgfdg How do you find/highlight all the occurrences? What I ideally want to do is to visually select the code block and then press search to find all occurrences. 回答1: The text being searched for is stored in the / register. You can't yank or delete directly into this register, but you can assign to it using `let'. Try this: Use visual mode to highlight the code you want to

How to replace finding words with the different in each occurrence in VI/VIM editor ?

和自甴很熟 提交于 2019-12-24 00:52:54
问题 For example, I have a text , 10 3 4 2 10 , 4 ,10 .... No I want to change each 10 with different words I know %s/10/replace-words/gc but it only let me replace interactively like yes/no but I want to change each occurrence of 10 with different words like replace1, 3, 4 , 2 , replace2, 4, replace3 .... 回答1: Replaces each occurence of 10 with replace{index_of_match} : :let @a=1 | %s/10/\='replace'.(@a+setreg('a',@a+1))/g Replaces each occurence of 10 with a word from a predefined array: :let b