Florent

- Total activity 64
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 0
- Subscriptions 9
-
Created Add a whitespace PsiElement after a bracket
Hi, I have a PHP array like this: return [ 'invokables' => [ ],]; The [] is a ArrayCreationExpression PSI. I want to add a key inside and it's works if (psiElement is ArrayCreationExp... -
Edited Add PsiElement to another
AnsweredHi, I have a PHP array like this: <?phpnamespace Intranet;return [ 'factories' => [ // Api Model\Infrastructure\Api\Adapter::class => Model\Infrastructure\Api\AdapterFactory::class... -
Created Add some code to a file
AnsweredHi, I got a VirtualFile from `VirtualFileManager.getInstance().findFileByUrl` so I can have a PsiFile like this: val psi: PsiFile? = PsiManager.getInstance(event.project!!).findFile(file!!) The f... -
Created Write in existing file after an action performed
Hi, I would like to know how to write in existing file after an action. When I do my action, I create some files and I need to add that file to a PHP config array in other file in the projects. Can... -
Edited Copy file from PsiFile
Hi I want to create a file on disk from an URL but I have an exception thrown, the method copyFileFrom tell me the file is non-physical and I don't know how to create a file from a resource. Can ... -
Edited Add element to PSI
Hi, I try to add an element to a PSI but I really don't understand yet the PSI system. A PSI is a tree with PSI element but I don't know how to add/edit/delete an element For example I have this ... -
Edited Get file from path to have a virtual file
AnsweredHi Hi would like to have a virtual file from a custom file in my plugin project: File file = new File("/templates/query.php");MyPluginProjectComponent.getLogger().info(file.exists() ? "true" : "fal... -
Edited Create new file
Hi, I would like to create new file with a custom file template. What is the best way to do this. For example, the PHP plugin can create file with file template. In a custom plugin, it's the be... -
Edited Create a PHPstorm plugin
Hello, I'm trying to create a PHPStorm plugin with Kotlin (I would like to learn Kotlin, and the best way to do is to create a real project) but I don't know how to run a PHPStorm sandbox instead o...