editor

How can I invoke VIM with C-X e for long, complex, tricky commands?

流过昼夜 提交于 2019-12-11 01:27:39
问题 I found an awesome tip here. You can "[r]apidly invoke an editor to write a long, complex, or tricky command". However, when I press the key combination above, I get Emacs open. I would like to switch it to Vim. How can I invoke Vim with C-X e? [1. Problem SOLVED by Brian Cambell] export EDITOR=vim Add to your .bashrc or appropriate shell rc file [2. Problem SOLVED thanks to Pax] I was unable to get the tricky command back to Bash. The errors were: > Error detected while processing BufRead

workflow c# expression properties window displays snippets

醉酒当歌 提交于 2019-12-11 01:10:42
问题 I have been building workflows using VS2012 and .NET 4.5. However every now and then when I try and enter a C# expression in the editor window the intellisense does not pick up any variables or namespaces in the project. Instead it just lists code snippets available! It take a few attempts of opening and closing the window before I get the editor to behave as expected. Also, even though I am then able to enter the right expression, the designer will still flag an error because it cannot find

WYSIWYG html editor query

ぃ、小莉子 提交于 2019-12-10 23:14:22
问题 I am in the process of creating a simple WYSIWYG HTML editor to enable the users of my application to design simple HTML emails. At the moment I have decided to use the web browser control with MSHTML to enable me to edit what is displayed. I have a tool bar which holds all of the relevant buttons, bold, underline, etc. I need a way to check if the current block has any formatting so the correct state can be displayed on the buttons in the tool bar. I tried to add an event handler to the

Editing SQL query with Visual Studio 2008

和自甴很熟 提交于 2019-12-10 22:25:15
问题 Would you recommend me the best approach to edit SQL query with Visual Studio 2008 Professional, please? I know I can open Query window from context menu in Server Explorer and edit text in SQL Pane. But unfortunately I am not allowed to save query to a file and Find and Replace commands are not working there. Alternatively I can open text file with extension .SQL in Visual Studio editor obtaining syntax highlighting and full editing capabilities but losing possibility to execute the script.

In plug-in.xml how to associate a file extension with a particular kind of editor in eclipse plug-in

随声附和 提交于 2019-12-10 21:46:41
问题 I'm developing an eclipse plug-in in which when files with extension ".cert" are to be associated with a certain kind of editor whose implementation is in RateBuilderEditor.java ? I think, I have to mention this in plugin.xml ? How do I achieve this ? How to write this ExtensionPoint ? 回答1: Here you go: <extension point="org.eclipse.ui.editors"> <editor class="[editor-impl-class]" default="true" filenames="*.cert" id="[some-id-or-use-impl-class]" name="My Custom Editor" icon="images/something

How to get the value from a kendo Editor in my model

删除回忆录丶 提交于 2019-12-10 20:15:30
问题 I am trying to use a Kendo UI Editor control in my ASP.NET MVC application. No success until now, since I cannot manage to get the value in the editor back to the model in the controller. My model is very simple (to edit an html page in my website): public class EditedPage { public string Name { get; set; } public string Title { get; set; } [AllowHtml] public string Content { get; set; } } And my view includes this code: @model Page <h2>@Model.Title</h2> @using (Html.BeginForm()) { @Html

VS code Format Code command and shortcut Shift+Alt+F doesn't work

一笑奈何 提交于 2019-12-10 17:39:16
问题 Any clues on why my VS Code "Format Code" command doesn't work? I used Shift+Ctrl+P and entered Format Code or used the shortcut Shift + Alt + F . None seem to be working. Any clue? 回答1: i'm having the same issue - it's looks like a bug. See: https://github.com/Microsoft/vscode/issues/12359 https://github.com/Microsoft/vscode/issues/12705 https://github.com/Microsoft/TypeScript/issues/11101 回答2: Make sure you changed your language to the type of file. ( Ctrl + K , M or Ctrl + Shift + P ->

Resharper moving top brace next to if statement. How to have on new line?

陌路散爱 提交于 2019-12-10 16:12:50
问题 My Resharper 8 is auto formatting on the end brace. The top brace moves to the end of the IF statement line. How can I have it format to the next line. Starting statement if (condition) { var x = new foo(); } When the bottom brace is removed and retyped this is the result. The top brace moves to the end of the line above. if (condition) { var x = new foo(); } The desired result is the initial starting statement. How can I change the options in R#8 to fix this? I have tried changing options in

How do you make Vim take you back where you were when you last edited a file? [duplicate]

核能气质少年 提交于 2019-12-10 15:45:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: In vim, how do I get a file to open at the same line number I closed it at last time? How do you make Vim take you back where you were when you last edited a file? My work computer has this feature, but not my home computer! How do you set Vim to remember in which part of a file you were when you last edited it? EDIT: just to be more precise, I want this behavior when opening a new file, or on startup . 回答1: I

CSS editor which expands one-line declarations on editing

柔情痞子 提交于 2019-12-10 15:37:06
问题 Is there a CSS editor which automatically expands one-line declarations as multi-line declarations on focus ? To clarify my thought, see example below: Original CSS: div#main { color: orange; margin: 1em 0; border: 1px solid black; } But when focusing on it, editor automatically expands it to: div#main { color: orange; margin: 1em 0; border: 1px solid black; } And when it looses focus, editor again it automatically compresses it to one-line declaration. Thanks. 回答1: If you are using Visual