Add file to package IntelliJ - intellij-idea

I have the following packages in my application:
Now, I want to add a file in the templates package.
How can I achieve this in IntelliJ? I can only add files in the templates.pages package.

You select the resources folder, then you create a new file and type templates/thenameofthefile.
Or you click the gear icon at the top-right of the view and you de-select the option "Compact middle packages".

Related

How to add a file to BBEdit Project folders

I have these two folders in a BBEdit project. When I drag one of the files into the folder, the file is not added to the folder? How do I add a file to the folder in a project?
Just drag the file to the folder in the Finder, it will be updated in the project. Here is what you do according to the BBEdit manual:
To add files or folders to a project, drag them from the Finder into
the project window, or click the Add button. When you click Add,
BBEdit presents the Open dialog in which you can choose one or more
files and folders to add. The files and folders you select will be
added directly to the project’s file list, and you can drag them to
reorganize their positions. You can also add a file by dragging its
icon from a text window’s navigation bar or sidebar to the group
window, or by dragging a file entry from any disk browser or results
browser.

View file in project view Intellij

I have started using Intellij and I am trying to find a feature that was in eclipse. I often navigate to a file either through the code or through a CTRL-N search. When I have the file I found open, I want to see which project and which folder of the project the file is in. I found a way to open the file in Windows Explorer which tells me what I want but I would rather stay in intellij and see the folders on the left expanded to the location of the file. Does this exist in intellij?
Thanks
On the heading of Project Explorer panel their will be a circle with 4 lines inside it.
Press that it will take you to the place where you file is inside the project
Image upload not working thats why explaination

IntelliJ is hiding folder in project window mentioned in .gitignore file, how to show that folder in project window?

ignoring build folder does not show it in project window.
commenting .gradle in .gitignore does show it in project windows.
I want to show both .gradle and build folders in project windows but I also want to include them in .gitignore file.
Right click on a directory in the project view and make sure Hide ignored files option is not enabled.
This feature is provided by a third-party .ignore plug-in. IntelliJ IDEA doesn't hide ignored files out of the box.
Note: If you don't see the .gitignore-d files, then try clicking this option regardless of its label in this menu. Sometimes because of a bug the entry says "hide" but clicking it actually shows the hidden files.
Some updates to .ignore plugin suggested in this answer.
IntelliJ now suggests installing foldable-projectview
This plugin really provides flexible configuration options.

IntelliJ Macro for external tool (compass)

I am trying to integrate the use of the compass scss framework in intellij. For that I created a new external tool in a group named "My Tools".
Under "Program" I entered the path to the compass.bat file, "Parameters" is "watch". For "Working directory I entered
$ProjectFileDir$\$ModuleName$\src\main\webapp
at first, but this is kind of ugly because the folder with the config.rb is not always in the same directory-structure... Is there any way to enter a Macro for a selected folder in the project tree of IntelliJ so I can start "compass watch" via context menu in the selected folder?
I changed the "Working directory" to "$FilePrompt$" now which is a better solution than the first one, but I still have to point to the directory with the config.rb and I want it to be selected via right click in the Project Tree...
$FileDir$ should do the thing
You can also try configuring a file watcher for compass - see this thread for details

How to get the path of my include files in vb.net 2005?

I have created a folder inside my project and i put an icon on it, now i want to use it as my program icon how will i get the link of my icon inside misc folder?
Double-click "My Project".
Open the "Application" tab.
Change "Icon" to "<Browse...>"
Navigate to your icon and select it. Press "Open".
The actual path will be "..\..\Misc\app.ico". But that will not be available when you deploy your application. Your best bet is add it under your project settings so that it will be added as a resource in your application. If you want to do it manualy you will need to make sure the app.ico file is in your application directory and your path adjusted accordingly "app.ico" or if you have an images directory ".\Images\app.ico"