jetbrains-ide

HTML code Inspection of blocks split up into several files in PhpStorm

微笑、不失礼 提交于 2019-12-13 16:14:56
问题 Is there a way to tell PhpStorm to only evaluate header.php together with footer.php (as a browser would do when running index.php)? Consider a project containing 4 files index.php - server side stuff, business logic header.php - html with some php prints item.php - html with some php prints footer.php - html with some php prints index.php <?php //Do some important stuff include 'templates/header.php'; foreach($some_array as $item){ include 'templates/item.php'; } include 'templates/footer

How to use snake case for file names and camel case for file names in CLion?

六月ゝ 毕业季﹏ 提交于 2019-12-13 15:53:39
问题 When I create new class MyClass , CLion creates MyClass.h and MyClass.cpp , but I want my_class.h and my_class.cpp . And when I try to rename files it renames class to class my_class {} . How can I have class MyClass {} and my_class.h , my_class.cpp ? 回答1: You have to write some Apache Velocity engine code to do that. Inside the CLion preferences you can adjust the file creation template settings (something like that, I don't have CLion open here to look it up) and write something like: #set(

IntelliJ Idea: Align on Colon for Scala Case Class Members?

元气小坏坏 提交于 2019-12-13 06:45:53
问题 Is there a way to prevent Idea from reformatting multiline case class members? Intended result (position of the colon is not so important, but the alignment of the type annotations would be great) case class ApiError( timestamp : LocalDateTime, status : Int, code : Option[String], message : String ) I've spent some time in the Code Styling settings for Scala and am stuck with code styling like this: case class ApiError( timestamp: LocalDateTime, status: Int, code: Option[String], message:

JetBrains IDE Error on start : The application was unable to start correctly (0xc000007b)

房东的猫 提交于 2019-12-13 05:51:16
问题 I have got this error, but hardly could find the solution after 2 times reinstalling my IDE and even I installed 'All in One runtimes' but it couldn't help since I think the problem originally started after I changed few settings in windows defender setting and then tried to reset them. But sure others have reported this problem and had no idea of what had happend all of a sudden to get following error when trying to run the application: JetBrains IDE Error on start : The application was

Missing intellisense, autocompletion in for loop

不想你离开。 提交于 2019-12-13 00:04:28
问题 I'm doing simple for loop through my node lists. nodeList = obj.get_nodes_list() for node in nodeList.items: print node. Node is type of V1Node and I want to access status property (field) This is what I get in PyCharm IDE in debugging session: And this is what I have using intellisense: Question: Where I have all the public fields ?! 回答1: In a debug session, PyCharm has access to the instance of an object, and can inspect and see exactly which attributes it has. When you're editing the code,

Hide full path to project in Project browser?

六月ゝ 毕业季﹏ 提交于 2019-12-12 19:52:08
问题 Trying out AppCode (2.5.4) at the moment I'm rather annoyed by having the full paths to projects always showing up in the ' Project ' view. Browsing the prefs I cannot find a way to turn this off? I'd rather prefer the Xcode way of having just the project's name.. In particular working with workspaces and sub-projects a lot it adds a lot of visual clutter. 回答1: Jay, there is no way to disable this path at the moment. Why do you find it annoying? 回答2: I'm not am Apple expert. Under Linux,

Android Studio file mapping problem, not recognize files

情到浓时终转凉″ 提交于 2019-12-12 19:17:14
问题 Please look at snapshot of the opened file below. When I double click on MyUtils.java it is showing this XML format: But when I open it manually from Windows Explorer it already have correct Java code inside: I have tried these but the problem remains: clean, rebuild project invalidate cache and restart deleted .gradle and .idea auto generated folders from the project updated and restart Studio. 回答1: It happens because of wrong File Encoding and you can see my answer about it in here.

What is the 'Resource Root' designation for in PHPStorm? For that matter, what does PHPStorm consider to be a resource?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 08:17:42
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 5 years ago . Maybe I'm being thick, but I fail to understand what the 'Resource Root' button/designation is for when creating a project in PHPStorm. Having looked at the PHPStorm documentation on the topic, the only explanation I've found is a variation on the following: "Resource Root: By assigning a folder to this category, you tell PhpStorm that files in it and in its

Run jsHintConfig in PhpStorm

丶灬走出姿态 提交于 2019-12-12 02:44:20
问题 In PhpStorm in file -> settings -> Language & Frameworks -> JavaScript -> JSHint I have checked Enable and Use config files . I have tried both options for location . For custom configuration file I used a path leading to my package.json yet I am not able to override jshint settings. It seems like if the IDE was looking somewhere else... How to tell PhpStorm/WebStorm that it should use jsHintConfig from package.json ? If I use "jshintConfig": { "eqeqeq": true, // true: Require triple equals (

Language Injection in WebStorm (scss into html)

无人久伴 提交于 2019-12-11 12:16:46
问题 The question: How to make WebStorm to understand scss in html Description: I'm have existed project based on vue.js I've associate .vue with html language ( .vue == .html ). In general *.vue files have structure like: <template> ... </template> <script> ... </script> <style lang="scss"> $some_var: 10px; .parent_class { .child_class { padding: $some_var; } } </style> The problem is that WebStorm didn't expect to see scss (instead of pure css ) in html. I know that "WebStorm" (as well as "IDEA"