Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added find/replace box #9

Open
wants to merge 1 commit into
base: release/1.1
Choose a base branch
from

Conversation

eduardosoprani
Copy link

No description provided.

Copy link
Owner

@natenho natenho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eduardosoprani , I added some comments to your code, hope it helps. Thank you for your contribution!

public SessionForm()
{
InitializeComponent();

myFindReplace = new FindReplace(editor); // For WinForms
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean code tips:

  • Consider removing "my" prefix from the variable name, because it doesn't add value to the name, it's just noise. In this particular case, follow the convention and use "_findReplace".
  • Remove the comment. It doesn't add any value to the code.

}
else if (e.Control && e.KeyCode == Keys.G)
{
GoTo MyGoTo = new GoTo((ScintillaNET.Scintilla)sender);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review variable naming, remove the prefix "My" and use camel Case for local variables: "goTo" in this case.

@@ -51,6 +51,9 @@
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="ScintillaNET FindReplaceDialog">
<HintPath>..\..\..\ScintillaNET-FindReplaceDialog\ScintillaNet FindReplaceDialog\bin\Release\ScintillaNET FindReplaceDialog.dll</HintPath>
Copy link
Owner

@natenho natenho Nov 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this :)
I can't merge your pull request because the build is broken by this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants