How can I make the PyDev editor selectively ignore errors?

前端 未结 4 1723
你的背包
你的背包 2021-02-06 22:43

I\'m using PyDev under Eclipse to write some Jython code. I\'ve got numerous instances where I need to do something like this:

import com.work.project.component         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-06 23:15

    Add the hash character # at the end of the line then with the cursor on the flagged error, press Ctrl-1. One of the options in the menu will be something like @UndefinedVariable. Adding this comment will cause PyDev to ignore the error.

提交回复
热议问题