当前位置:网站首页>The solution to turn the newly created XML file into a common file in idea

The solution to turn the newly created XML file into a common file in idea

2022-07-01 14:57:00 lwj_ 07

One 、 New version solution

Cause :

This phenomenon is generally caused by creating xml Forget to input the file .xml The suffix is , So when creating idea A window will pop up allowing you to choose the file type , Here's the picture

Then rename and add manually xml Suffixes are useless .

  resolvent :

The solution is to open the settings , stay File Types Found in Auto-detect file type by content label , Just delete the records inside .

Or in Xml Labeled FIle name patterns Add the file name in

  Two 、 Previous version solution

Here I quote someone else's article :

Here's the screenshot :

File–>setting

 1、 Choose Text, Find the extension below *.xml Delete the ,

2、 Choose XML, Add an extension to the following *.xml that will do

3. But click in and find that my configuration is ok . And create a new one with a different name , Just add the suffix ., Continue to create the original name , Adding suffixes doesn't work ,

Think about it , Think of a solution . First delete the original name file , Continue to create a file with the same name , But do not write suffixes when naming , The select file type box pops up again . choice xml,OK

 Insert picture description here

 4. If you create a file name . Always a certain type . to glance at registered pattern Whether there is a template configured in without knowledge . If there is . Just delete it . Like the configuration in the figure below . Create a file named CheckTaskSizeMapper. It must be .xml Format

 Insert picture description here

原网站

版权声明
本文为[lwj_ 07]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207011449147481.html