text-editor

How to permanently disable region-folding in Visual Studio 2008

醉酒当歌 提交于 2019-11-26 23:57:24
问题 Anyone know how to turn off code folding in visual studio 2008? Some of my colleagues love it, but I personally always want to see all the code, and never want code folded out of sight. I'd like a setting that means my copy of Visual Studio never folds #regions or function bodies. 回答1: Edit: I recommend this other answer Go to the Tools->Options menu. Go to Text Editor->C#->Advanced. Uncheck "Enter outlining mode when files open". That will disable all outlining, including regions, for all c#

See line breaks and carriage returns in editor

大憨熊 提交于 2019-11-26 23:51:02
问题 Does anyone know of a text editor on Linux that allows me to see line breaks and carriage returns? Does Vim support this feature? 回答1: :set list in Vim will show whitespace. End of lines show as ' $ ' and carriage returns usually show as ' ^M '. 回答2: To disagree with the official answer: :set list will not show ^M characters (CRs). Supplying the -b option to vi/vim will work. Or, once vim is loaded, type :e ++ff=unix . 回答3: VI shows newlines (LF character, code x0A ) by showing the subsequent

How to edit files in AWS S3 in the browser?

谁说我不能喝 提交于 2019-11-26 21:46:30
问题 I have hosted my Homepage over Amazon's S3 system. In order to change information on the page, currently, I have to change the file on my computer and upload the new version. However, I would like to directly change the file in the S3 bucket within a browser (to change it anywhere). Is there a cloud-based text editor that can use S3 as a "file system" and would allow me to change text files (e.g., html, css, js, etc.)? 回答1: I would use S3 Sync from the awscli to download the files and edit

What's in your .emacs?

帅比萌擦擦* 提交于 2019-11-26 21:14:09
I've switched computers a few times recently, and somewhere along the way I lost my .emacs. I'm trying to build it up again, but while I'm at it, I thought I'd pick up other good configurations that other people use. So, if you use Emacs, what's in your .emacs? Mine is pretty barren right now, containing only: Global font-lock-mode! (global-font-lock-mode 1) My personal preferences with respect to indentation, tabs, and spaces. Use cperl-mode instead of perl-mode. A shortcut for compilation. What do you think is useful? Use the ultimate dotfiles site . Add your '.emacs' here. Read the '.emacs'

Hidden Features of Visual Studio (2005-2010)?

情到浓时终转凉″ 提交于 2019-11-26 21:12:08
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\Microsoft\VisualStudio\8.0\Text Editor" Create a String called Guides with the value "RGB(255,0,0), 80" to have a red line at column 80 in the text editor. What other hidden features have you stumbled upon? Make a selection with ALT pressed - selects a square of text instead of

How to set working/current directory in Vim?

久未见 提交于 2019-11-26 18:57:44
问题 So when I want to create a new file by using the :e command I don't want to specify the whole path, just the new filename. Can it be done? 回答1: As already suggested, you can use autochdir, which will change to the directory of the file you opened, the other option is :cd mydirectory which will change the directory. This can be an absolute or relative path, so :cd .. will move up one level. Or you can use :cd %:h which will also change to the directory the current file is in, but without

How to call VS Code Editor from command line

邮差的信 提交于 2019-11-26 18:54:59
问题 The question says it all. How can I call VS Code editor from windows cmd linux and mac terminal e.g. for notepad++ I write > start notepad++ test.txt By the way, the editor is awesome (cross-platform)! Thank you Nadella! You can download it from microsoft 回答1: Use the command code /path/to/file/or/directory/you/want/to/open to open your file in VS Code. On Windows and Linux the code command should be installed automatically. On macOS, it needs to be installed manually: Launch VS Code. Now

Text editor theory [closed]

我的梦境 提交于 2019-11-26 18:46:52
问题 As I'm always dissatisfied with existing editors, a project I always wanted to start is my own text editor. However doing text editing is serious business. Besides analyzing the source code of existing text editors, is there any book or other resource (like academic work) about this topic? I'm interested especially in something that teaches how to handle memory and how to manage text insertion (if you have a 100 MB file and want to add a char at x position, you can't just memmove the huge

Is it worth investing time in learning to use Emacs?

雨燕双飞 提交于 2019-11-26 17:55:20
问题 Right up front: I do not want to start a religious war. I've used vi for as long as I can remember, and the few times I've tried to pick up Emacs I've been so lost that I've quickly given up. Lots of people find Emacs very powerful, however. Its programmability is somewhat legendary. I'm primarily doing Solaris+Java development, and I'd like to ask a simple question: will my productivity increase if I invest time in getting my head around Emacs? Is the functionality that it offers over Vim

How do I use Notepad++ (or other) with msysgit?

匆匆过客 提交于 2019-11-26 16:51:42
How do I use Notepad++ (or any other editor besides vim) with msysgit? I tried all of the following to no avail: git config --global core.editor C:\Program Files\Notepad++\notepad++.exe git config --global core.editor "C:\Program Files\Notepad++\notepad++.exe" git config --global core.editor C:/Program Files/Notepad++/notepad++.exe git config --global core.editor C:\\Program Files\\Notepad++\\notepad++.exe VonC Update 2010-2011: zumalifeguard 's solution (upvoted) is simpler than the original one, as it doesn't need anymore a shell wrapper script. As I explain in " How can I set up an editor