code-editor

komodo edit 7.1 doesn't recognize html5 tags in php mode

浪子不回头ぞ 提交于 2019-12-02 01:12:49
问题 The title is pretty explicative! In php mode komodo edit assume html4 and raise errors when html5 tags like article, time, section are used. This could be pretty troublesome since it could cover php errors. Is there a way to fix this? 回答1: Maybe solution found: Preferences -> Languages -> HTML -> Default HTML Document Type -> HTML5 来源: https://stackoverflow.com/questions/12253843/komodo-edit-7-1-doesnt-recognize-html5-tags-in-php-mode

How do I auto-indent Python code in Visual Studio Code?

淺唱寂寞╮ 提交于 2019-11-30 12:50:11
I'm using Visual Studio Code ( not Visual Studio ) on Linux and I can't seem to find out how to turn on auto-indentation for Python. I've looked all over preferences, spent some time on Google, and can't find anything. Does anyone know how to do this? In VS Code you can set the indentation in several places : General/Workspace settings (bottom bar), User settings, language formatter settings. When using Python, no matter what settings you set, all of them are overridden by the autopep8Args value of the autopep8 language formatter setting, which has an indent size of 4. By default, autopep8 is

Collapse all #regions only(!) in C# (Visual Studio)

折月煮酒 提交于 2019-11-30 10:21:40
问题 There's a number of keyboard shortcuts and menu commands to automatically expand or collapse all foldables in the current document. Ctrl + M , Ctrl + L toggles all foldables recursively, from the top namespace down to the inner methods and comments. Basically everything that has a [+] icon in the left margin. Ctrl + M , Ctrl + O does it bit less, but it still touches methods and comments inside the class. I'm looking for a function that specifically only regards #region foldables and nothing

External Editor Support for Google Apps Script

◇◆丶佛笑我妖孽 提交于 2019-11-30 00:02:30
I am using Google Apps Script and was wondering if I could use any sort of editor outside of the one Google provides. (I purchased Sublime Text and would like to use that.) The one Google provides is disgusting, with tiny text even though I have a giant screen and syntax colors that I find a bit difficult to distinguish on a white background with small text, and I don't have the beauties of Sublime like tons of custom keyboard shortcuts, all of my packages, etc. Google has dropped support for Apps Script inside Eclipse but you can set up a local development environment inside VS Code using the

Collapse all #regions only(!) in C# (Visual Studio)

让人想犯罪 __ 提交于 2019-11-29 20:06:33
There's a number of keyboard shortcuts and menu commands to automatically expand or collapse all foldables in the current document. Ctrl + M , Ctrl + L toggles all foldables recursively, from the top namespace down to the inner methods and comments. Basically everything that has a [+] icon in the left margin. Ctrl + M , Ctrl + O does it bit less, but it still touches methods and comments inside the class. I'm looking for a function that specifically only regards #region foldables and nothing else. Not namespaces, classes, comments, or methods. I really only want to fold those areas that are

Can Ace Editor support multiple code editors in one page?

社会主义新天地 提交于 2019-11-29 18:56:53
问题 I'm looking to implement a web app that features "coding-competition"-styled interface with 2 different code editors in a single screen. One will be read only and the other will be active and would allow the user to edit. I'm currently using Ace Editor and i find it awesome and simple to use. However, here's my question. I seem to be getting an error upon trying to implement 2 different editors in a single page. Uncaught RangeError: Maximum call stack size exceeded Is the variable "editor" in

How do I auto-indent Python code in Visual Studio Code?

帅比萌擦擦* 提交于 2019-11-29 17:54:14
问题 I'm using Visual Studio Code ( not Visual Studio ) on Linux and I can't seem to find out how to turn on auto-indentation for Python. I've looked all over preferences, spent some time on Google, and can't find anything. Does anyone know how to do this? 回答1: In VS Code you can set the indentation in several places : General/Workspace settings (bottom bar), User settings, language formatter settings. When using Python, no matter what settings you set, all of them are overridden by the

IntelliJ: how to force editor to treat a file as javascript?

↘锁芯ラ 提交于 2019-11-29 16:42:24
问题 I'm creating a Grails app in IntelliJ 10 and have a javascript file that is created dynamically, as a Grails view. For that reason the javascript file doesn't end in '.js'. It ends in '.gsp' because it's a Groovy Server Page that spits out javascript. IntelliJ doesn't know it's a javascript file so it doesn't give me code completion or warnings. I want my code complete and syntax checking! Is there a way to force IntelliJ to treat this specific file as Javascript, WITHOUT messing up the

How to collapse blocks of code in Eclipse?

感情迁移 提交于 2019-11-28 16:46:44
Some days ago my Eclipse was working fine and a +/- appeared in every block that could be collapsed (functions, classes, etc.)... but now it does appear, and I don't know how to activate that feature again. It's Eclipse Helios, running on a Gentoo Linux box. Preferences -> C++ -> Editor -> Folding ? Make a right click in the editor window and go to preferences there, then only the editor-relevant section of the preferences dialog will appear. This works for JDT, CDT etc... You can do Ctrl + Numpad_Divide to enable folding. Also if you right-click on the area where the +/- was supposed to be,

How to collapse blocks of code in Eclipse?

僤鯓⒐⒋嵵緔 提交于 2019-11-27 09:55:18
问题 Some days ago my Eclipse was working fine and a +/- appeared in every block that could be collapsed (functions, classes, etc.)... but now it does appear, and I don't know how to activate that feature again. It's Eclipse Helios, running on a Gentoo Linux box. 回答1: Preferences -> C++ -> Editor -> Folding ? Make a right click in the editor window and go to preferences there, then only the editor-relevant section of the preferences dialog will appear. This works for JDT, CDT etc... 回答2: You can