text-editor

How to run a program in Atom Editor?

耗尽温柔 提交于 2019-12-03 04:15:11
I found Atom editor as good free alternative to Sublime text editor. Not able to find a straightforward way to run a program in Atom editor. In my case, I am trying to run a java program. Please let me know if it's possible? If yes, please describe the steps to follow. I find the Script package useful for this. You can download it here . Once installed you can run scripts in many languages directly from Atom using cmd-i on Mac or shift-ctrl-b on Windows or Linux. ZigZag Click on Packages --> Commmand Palette --> Select Toggle . Type Install Packages and Themes . Search for Script and then

Change background colour for Visual Studio

ⅰ亾dé卋堺 提交于 2019-12-03 04:07:00
问题 How can we change the background colour in Visual Studio? 回答1: Jeff Atwood wrote a blog post (some years ago actually) for customizing VS code editor with custom fonts, background etc... This may point you to some interesting resources. Here's the link: http://www.codinghorror.com/blog/archives/000682.html 回答2: And the correct answer is (Visual Studio 2010): From the menus: Tools -> Options --> Environment -> Fonts and Colors: Select "Plain Text". On the right of that, under "Item backgroud:"

How can I manually download packages for atom editor and install them (manually)?

左心房为你撑大大i 提交于 2019-12-03 03:57:03
问题 Due to poor internet connection my atom packages won’t install from settings>preferences>install>packages . So I think I need to manually install them. For example: I tried the repository from respective github page and cloned it in users>.atom>packages but this didn't work. Any help? I love this text editor so it would be pretty handy if I could install more packages manually. Any other ways are always welcome! 回答1: There are a few ways, most are similar to this : You can download the

What is best data structure suitable to implement editor like notepad?

无人久伴 提交于 2019-12-03 03:56:59
问题 Which data structure/s is used in implementation of editors like notepad. This data structure should be extensible, and should support various features like edition, deletion, scrolling, selection of range of text etc? 回答1: We wrote an editor for an old machine (keep in mind that this was a while ago, about 1986, so this is from memory, and the state of the art may have advanced somewhat since then) which we managed to get to scream along, performance wise, by using fixed memory blocks from

Move line Up/Down shortcut in Visual Studio 2012

穿精又带淫゛_ 提交于 2019-12-03 03:27:54
问题 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

Text editor capable of viewing invisibles?

自作多情 提交于 2019-12-03 02:07:37
A recent problem* left me wondering whether there is a text editor out there that lets you see every single character of the file, even if they are invisible? Specifically, I'm not looking for hex editing capabilities, I am interested in a text editor that'll show me all of the invisible characters (not just the common whitespace / line break characters). The BOM marker is just one example, others are e.g. mathematical invisibles or possibly unsupported characters . I'm not looking for a text editor that simply supports a large variety of text encoding / translations between encodings. All

When in Vim insert mode, is there a way to add filepath autocompletion?

℡╲_俬逩灬. 提交于 2019-12-03 02:02:02
问题 I write a lot of shell scripts and I am constantly having to enter in filepaths. I am wondering if anyone knows of a way to get Vim to autocomplete filepaths while in insert mode, just like when you are in your favorite shell you tab to complete the path of the directory or file. Extra credit if you can get CTRL D functionality of the shell into Vim insert mode (i.e. to see what files/directories are in the current path). 回答1: For file name omni completion, you can use: Ctrl - X Ctrl - F 回答2:

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

让人想犯罪 __ 提交于 2019-12-03 01:47:19
问题 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

Sublime as default editor

六眼飞鱼酱① 提交于 2019-12-03 01:32:49
问题 Is there a way to set Sublime Text as the default text editor for file formats on Windows 7? Also, if anyone knew a Sublime Text Tutorial or Wiki that would be really helpful. 回答1: Actually it is not my answer, I have just googled it: Open regedit ( Win + R , type "regedit", select OK). Navigate to HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command Verify that the path is accurate, correct it if it is not. Exit regedit. Open task manager via Ctrl + Alt + Del (or Ctrl + Shift +

How to paste text to end of every line? Sublime 2

走远了吗. 提交于 2019-12-03 01:29:04
问题 I'm curious if there is a way to paste text to the end of every line in Sublime 2? And conversely, to the beginning of every line. test line one test line two test line three test line four ... Say you have 100 lines of text in the editor, and you want to paste quotation marks to the beginning and end of each line. Is there an easy way to do this or a plugin that anyone would know of? This would often save me a lot of time on various projects. Thanks. 回答1: You can use the Search & Replace