久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

格式化后無法刪除 Eclipse 中的塊注釋

Cannot remove block comment in Eclipse after formatting(格式化后無法刪除 Eclipse 中的塊注釋)
本文介紹了格式化后無法刪除 Eclipse 中的塊注釋的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

Eclipse 的自動格式化程序會更改塊注釋,因此 Source > Remove Block Comment 不會完全刪除塊注釋.Source > Add Block Comment 將時鐘注釋的開始和結束添加到代碼行中,但是在運行 Formatter (Ctrl + Shift + F) 后,它會包裝代碼行并在每行的開頭添加一個星號.當我嘗試使用 Source > Remove Block Comment 刪除塊注釋時,塊注釋的開頭和結尾被刪除,但每行開頭的星號不會被刪除.

Eclipse's automatic formatter changes block comments such that the Source > Remove Block Comment does not completely remove the block comment. Source > Add Block Comment adds the start and end of the clock comment to the lines of code, but after running the Formatter (Ctrl + Shift + F), it wraps the lines of code and adds an asterisk to the start of each line. When I try to remove the block comment with Source > Remove Block Comment, the start and end of the block comment is removed, but the asterisks at the beginning of each line is not removed.

如何防止 Eclipse 添加這些星號,或者在刪除塊注釋的開頭和結尾時刪除星號?

How do I prevent Eclipse from adding these asterisks, or remove the asterisks when it removes the start and end of the block comment?

示例:

這樣的代碼:

    String abc="abc";
    String def="def";
    System.out.println(abc+def);
    System.exit(0);

添加塊評論后變成這樣:

Becomes like this after adding block comments:

/*  String abc="abc";
    String def="def";
    System.out.println(abc+def);
*/  System.exit(0);

應用格式后變成這樣:

    /*
     * String abc="abc"; String def="def"; System.out.println(abc+def);
     */System.exit(0);

使用刪除塊評論功能后,結果如下:

Which ends up like this after using the Remove Block Comment function:

    * String abc="abc"; String def="def"; System.out.println(abc+def);
    System.exit(0);

推薦答案

這可能有點晚了,但我通過禁用塊評論格式解決了這個問題.

This may be a little late in the game, but I fixed this by disabling block comment formatting.

Windows -> Preferences -> Java -> Code Style -> Formatter -> Edit -> Comments

然后取消選中啟用塊注釋格式.

這篇關于格式化后無法刪除 Eclipse 中的塊注釋的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Parsing an ISO 8601 string local date-time as if in UTC(解析 ISO 8601 字符串本地日期時間,就像在 UTC 中一樣)
java Calendar setFirstDayOfWeek not working(java日歷setFirstDayOfWeek不起作用)
Java: getting current Day of the Week value(Java:獲取當前星期幾的值)
The correct way to set and get hour, minutes, sec(設置和獲取小時、分鐘、秒的正確方法)
Outlook like calendar control in JavaFX 2.0+(JavaFX 2.0+ 中的 Outlook 類似日歷控件)
Calculate leap year in Java(用Java計算閏年)
主站蜘蛛池模板: 日韩在线欧美 | 毛片一级片 | 台湾佬久久 | 亚洲综合婷婷 | 在线一区二区三区 | 国产精品久久久久久久免费观看 | 亚洲天堂中文字幕 | 黄色国产在线播放 | 香蕉视频91 | 亚洲bt 欧美bt 日本bt | 午夜久久久久久久久久一区二区 | 日韩高清www | 91福利在线导航 | 成人性视频免费网站 | 日本久久网 | 黄色大片视频 | 男女爱爱网站 | 一级免费毛片 | 在线播放中文字幕 | 国产一区二区三区四区在线观看 | 日韩欧美二区 | 欧美色综合一区二区三区 | 欧美一级免费看 | 国产精品1区 | 日韩av在线中文字幕 | 一级做a毛片 | 精品亚洲一区二区 | 一级做a爰片久久毛片免费看 | 国产精品久久久久久52avav | 欧美一区二区三区的 | 成人影院网站ww555久久精品 | 亚洲精品18 | 国产精品免费小视频 | 亚洲精品久久久久久久久久吃药 | 欧美日韩国产在线观看 | 国产午夜av片 | 91精品久久久久久久久 | 精品久久久网站 | 国产精品揄拍一区二区久久国内亚洲精 | 欧美午夜激情在线 | 在线观看中文视频 |