text-editor

sublime text : open containing folder

杀马特。学长 韩版系。学妹 提交于 2019-12-02 16:12:10
I'm working on some file in my sublime text 2 editor, and I want to open a folder in which that file resides. I know there is a 2 step procedure to do this already step 1: right click and reveal in sidebar (ctrl+shift+r) step 2: right click on the same file in sidebar and click open containing folder. I would like to know if there is only one shortcut key to do the same. This is something that I use quite often. You can add the line below to your Default (Windows).sublime-keymap : { "keys": ["ctrl+alt+e"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} } This worked

Move line Up/Down shortcut in Visual Studio 2012

懵懂的女人 提交于 2019-12-02 15:42:05
In VS2010 I had a shortcut set up Alt + Up/Down to move lines of code up or down, just like I used to have in Eclipse in my Java days. Now since Power Tools and macros (which is how I set up this shortcut in VS2010) are not available in VS2012, how do I get this to work? I've seen somebody mentioned that Resharper can do this, but for the love of fire and water, I can't find the command names in the list of commands that can do that. I have tried ReSharper_MoveUp/MoveDown and that does not move lines up/down: This moves blocks of text up and down. I just want line-by-line up or down, no fancy

Notepad++: How to automatically set Language as Xml when load files

与世无争的帅哥 提交于 2019-12-02 14:19:59
Whenever I edit a .config file in Notepad++ (which is an XML file) I want the syntax highlighting to automatically color it like XML. How do I configure Notepad++ to do this so that I don't have to manually select it every time I open a .config file? Thanks. You can do this by using the Style Configurator (Settings Menu): This image shows the php language, but it works for any language you want to map From the Settings menu, choose Style Configurator... . Choose the XML Language from the list, and enter "config" in the User ext field. I don't think you can set a default style for all files

How do you enable word-wrap by default in Eclipse?

回眸只為那壹抹淺笑 提交于 2019-12-02 14:18:20
Simple question: how do you enable word-wrap by default in Eclipse? I looked at this plugin but it only goes up to Luna. In addition, this plugin is a separate text editor and does not have syntax highlighting or validation. I'm open to other suggestions. Word wrap is available in Eclipse Neon IDE: https://www.eclipse.org/neon/noteworthy/#_word_wrap_in_text_editors . Just consider using the latest version . Shortcut: Alt + Shift + Y Emmanuel Guiton As pointed out by @KrisWebDev in this answer , Eclipse supports soft line/word wrapping as of Eclipse Neon but the GUI to control this setting does

Rich Text Editor for AngularJS [closed]

最后都变了- 提交于 2019-12-02 14:17:56
I use TextAngular which sucks to the core! Anybody using it would know. My users complain every single day :( I'm looking at alternatives and found some such as Froala ($199) & CKEditor but they require JQuery. Is there any "good" editor for AngularJS without JQuery that works? I have been searching but couldn't find any. I'm willing to pay too. You have a lot of options. But if you don't like it, just write a new editor and share it with us :) Angular-Editor -> Demo Angular Meditor -> Demo Angular trix -> Demo ngQuill -> using QuillJs Angular-inline-text-editor -> Demo You can create a new

How to break lines at a specific character in Notepad++?

一曲冷凌霜 提交于 2019-12-02 14:02:31
I have a text file containing text like: ['22APR2012 23:10', '23APR2012 07:10', 1, 3, 0], ['22APR2012 23:10', '23APR2012 07:20', 1, 3, 0], ['22APR2012 23:15', '23APR2012 06:40', 0, 1, 0], ['22APR2012 23:15', '23APR2012 06:40', 1, 3, 0], ['22APR2012 23:15', '23APR2012 06:40', 0, 1, 0], ['22APR2012 23:15', '23APR2012 07:00', 1, 3, 0], ['22APR2012 23:15', '23APR2012 07:00', 0, 1, 0], ['22APR2012 23:20', '23APR2012 09:35', 0, 1, 0], ['22APR2012 23:20', '23APR2012 09:35', 1, 3, 0], ['22APR2012 23:20', '23APR2012 10:10', 1, 3, 0], ['22APR2012 23:25', '23APR2012 05:35', 1, 3, 0], I want the lines

Data structure for text editor

跟風遠走 提交于 2019-12-02 13:59:35
This is an interview question. What data structure would you use to store the text in a text editor? On good old ZX-Spectrum one (or more, I do not know) text exditor used very simple structure. There was one big buffer, which occupied all free RAM. Text was split in two parts at the cursor. Part before the cursor, was placed at the beginning of the buffer, and the rest at the end of the buffer. As text typed, data simply added to the end of first part, and when cursor is moved, text is copied forth and back. Buffer layout: Hello, World! ^------Cursor here +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Vim multiline editing like in sublimetext?

百般思念 提交于 2019-12-02 13:50:59
I started to use gvim, and I can't quite understand how the multiline edit works in gvim. For example: Original text: asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; ctrl+q, jjjjjj , $ everything is selected, then i press I to do a multiline insert. My intention is to insert quotes like in the first line, and then to press Esc: asd "asd asd" asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; asd asd asd asd asd; What happened? I

How to use sidebar with the keyboard in Sublime Text 2 and 3?

↘锁芯ラ 提交于 2019-12-02 13:50:15
When using Sublime Text 2 we tend to open the side bar to navigate thru files/folders in our projects. For that we can use the hotkey ctrl+k ctrl+b (in windows). However, once we're in the side bar , we can't use it with keyboard (arrows for instance). We have to stick using it with our own mouse... Just a note : I installed SideBarEnhancements plugin, but I didn't find anything that could solve my problem. Any solution you might know? Riccardo Marotti You can type Ctrl + 0 ( Ctrl + Zero ) to focus on the side bar. Then you'll be able to move selection among files with arrow keys and to open

Remove/Add Line Breaks after Specific String using Sublime Text

梦想与她 提交于 2019-12-02 13:49:52
Using Sublime Text 2 - Is it possible to insert a line break /text return after a specific String in a text file e.g. by using the Find ‣ Replace tool? (Bonus question: Is it possible to remove all line breaks after a specific String) Here's how you'd do it on a Mac: Command + F > type string > Control + Command + G > ESC > Right Arrow > line break and Windows/Linux (untested): Control + F > type string > Alt + F3 > ESC > Right Arrow > line break The important part being Control + Command + G to select all matches. Once you've selected the text you're looking for, you can use the provided